From 36eb8e3b107a9bf5b4aa3e6be97e1934d436530a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 30 Sep 2017 16:06:46 +0000 Subject: [PATCH] Use Puc_v4_Factory::normalizePath() --- Puc/v4p2/DebugBar/Extension.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Puc/v4p2/DebugBar/Extension.php b/Puc/v4p2/DebugBar/Extension.php index 77891fb..f49f4a4 100644 --- a/Puc/v4p2/DebugBar/Extension.php +++ b/Puc/v4p2/DebugBar/Extension.php @@ -90,11 +90,11 @@ if ( !class_exists('Puc_v4p2_DebugBar_Extension', false) ): $absolutePath = realpath(dirname(__FILE__) . '/../../../' . ltrim($filePath, '/')); //Where is the library located inside the WordPress directory structure? - $absolutePath = wp_normalize_path($absolutePath); + $absolutePath = Puc_v4_Factory::normalizePath($absolutePath); - $pluginDir = wp_normalize_path(WP_PLUGIN_DIR); - $muPluginDir = wp_normalize_path(WPMU_PLUGIN_DIR); - $themeDir = wp_normalize_path(get_theme_root()); + $pluginDir = Puc_v4_Factory::normalizePath(WP_PLUGIN_DIR); + $muPluginDir = Puc_v4_Factory::normalizePath(WPMU_PLUGIN_DIR); + $themeDir = Puc_v4_Factory(get_theme_root()); if ( (strpos($absolutePath, $pluginDir) === 0) || (strpos($absolutePath, $muPluginDir) === 0) ) { //It's part of a plugin. @@ -114,4 +114,4 @@ if ( !class_exists('Puc_v4p2_DebugBar_Extension', false) ): } } -endif; \ No newline at end of file +endif;