From cc5e047b4a859bbd8960a27fa4b776c1327a8431 Mon Sep 17 00:00:00 2001 From: Matthew Batchelder Date: Thu, 8 Aug 2024 16:45:25 -0400 Subject: [PATCH] Fix fat-fingered str_replace order --- src/Assets/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Assets/Config.php b/src/Assets/Config.php index 291188f..e946e9e 100644 --- a/src/Assets/Config.php +++ b/src/Assets/Config.php @@ -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 );