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 adcfe7d commit fda7daa
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 @@ -34,10 +34,10 @@
require_once __DIR__ . '/php/class-coauthors-plus.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 __DIR__ . '/php/class-wp-cli.php';
Expand Down

0 comments on commit fda7daa

Please sign in to comment.