From 150d3d8165c33503a0d95e248e93a70467df3a23 Mon Sep 17 00:00:00 2001 From: Yahnis Elsts Date: Thu, 16 Nov 2017 17:00:22 +0200 Subject: [PATCH] Rename Puc_v4_Factory to Puc_v4p3_Factory This should fix the fatal error that happens when running PUC 4.3 together with an older 4.x release while Debug Bar is active. See #152 --- Puc/v4p3/DebugBar/Extension.php | 8 ++++---- Puc/{v4 => v4p3}/Factory.php | 4 ++-- README.md | 8 ++++---- plugin-update-checker.php | 16 ++++++++-------- 4 files changed, 18 insertions(+), 18 deletions(-) rename Puc/{v4 => v4p3}/Factory.php (99%) diff --git a/Puc/v4p3/DebugBar/Extension.php b/Puc/v4p3/DebugBar/Extension.php index 0d33e6c..c912586 100644 --- a/Puc/v4p3/DebugBar/Extension.php +++ b/Puc/v4p3/DebugBar/Extension.php @@ -90,11 +90,11 @@ if ( !class_exists('Puc_v4p3_DebugBar_Extension', false) ): $absolutePath = realpath(dirname(__FILE__) . '/../../../' . ltrim($filePath, '/')); //Where is the library located inside the WordPress directory structure? - $absolutePath = Puc_v4_Factory::normalizePath($absolutePath); + $absolutePath = Puc_v4p3_Factory::normalizePath($absolutePath); - $pluginDir = Puc_v4_Factory::normalizePath(WP_PLUGIN_DIR); - $muPluginDir = Puc_v4_Factory::normalizePath(WPMU_PLUGIN_DIR); - $themeDir = Puc_v4_Factory::normalizePath(get_theme_root()); + $pluginDir = Puc_v4p3_Factory::normalizePath(WP_PLUGIN_DIR); + $muPluginDir = Puc_v4p3_Factory::normalizePath(WPMU_PLUGIN_DIR); + $themeDir = Puc_v4p3_Factory::normalizePath(get_theme_root()); if ( (strpos($absolutePath, $pluginDir) === 0) || (strpos($absolutePath, $muPluginDir) === 0) ) { //It's part of a plugin. diff --git a/Puc/v4/Factory.php b/Puc/v4p3/Factory.php similarity index 99% rename from Puc/v4/Factory.php rename to Puc/v4p3/Factory.php index 56a3351..1155e8a 100644 --- a/Puc/v4/Factory.php +++ b/Puc/v4p3/Factory.php @@ -1,5 +1,5 @@