Skip to content

Commit

Permalink
Use __DIR__ instead of dirname( __FILE__ )
Browse files Browse the repository at this point in the history
  • Loading branch information
douglas-johnson committed Sep 15, 2023
1 parent fb80043 commit 889a542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions co-authors-plus.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
require_once dirname( __FILE__ ) . '/php/integrations/yoast.php';

// Blocks
require_once dirname( __FILE__ ) . '/php/blocks/class-blocks.php';
require_once __DIR__ . '/php/blocks/class-blocks.php';

// REST APIs for Blocks
require_once dirname( __FILE__ ) . '/php/api/endpoints/class-coauthors-blocks-controller.php';
require_once __DIR__ . '/php/api/endpoints/class-coauthors-blocks-controller.php';

if ( defined( 'WP_CLI' ) && WP_CLI ) {
require_once dirname( __FILE__ ) . '/php/class-wp-cli.php';
Expand Down

0 comments on commit 889a542

Please sign in to comment.