Skip to content

Commit

Permalink
Fix fat-fingered str_replace order
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed Aug 8, 2024
1 parent 9dcc5cc commit cc5e047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Assets/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static function set_path( string $path ) {
$plugin_dir = WP_PLUGIN_DIR;

if ( DIRECTORY_SEPARATOR !== '/' ) {
$plugin_dir = str_replace( '/', DIRECTORY_SEPARATOR, $plugin_dir );
$plugin_dir = str_replace( DIRECTORY_SEPARATOR, '/', $plugin_dir );
}

$plugins_content_dir_position = strpos( $path, $plugin_dir );
Expand Down

0 comments on commit cc5e047

Please sign in to comment.