Skip to content

Commit

Permalink
Remove constant
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Aug 13, 2024
1 parent 3f99a4b commit 43c93a8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion .deployignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ phpunit.xml
configure.php
DOCKER_ENV
phpunit.xml
tests
.phpcs
Makefile
2 changes: 1 addition & 1 deletion src/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function get_entry_dir_path( string $dir_entry_name, bool $dir = false ): string
// The relative path from the plugin root.
$asset_build_dir = "/build/{$dir_entry_name}/";
// Set the absolute file path from the root directory.
$asset_dir_path = WP_COMMAND_PALETTE_DIR . $asset_build_dir;
$asset_dir_path = dirname( __DIR__ ) . $asset_build_dir;

if ( validate_path( $asset_dir_path ) ) {
// Negotiate the base path.
Expand Down
5 changes: 0 additions & 5 deletions wp-command-palette.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,5 @@
exit;
}

/**
* Root directory to this plugin.
*/
define( 'WP_COMMAND_PALETTE_DIR', __DIR__ );

// Load the plugin's main files.
require_once __DIR__ . '/src/assets.php';

0 comments on commit 43c93a8

Please sign in to comment.