diff --git a/Puc/v5p2/UpdateChecker.php b/Puc/v5p2/UpdateChecker.php index 6a4ab27..d97048e 100644 --- a/Puc/v5p2/UpdateChecker.php +++ b/Puc/v5p2/UpdateChecker.php @@ -980,7 +980,11 @@ protected function isBadDirectoryStructure($remoteSource) { * Initialize the update checker Debug Bar plugin/add-on thingy. */ public function maybeInitDebugBar() { - if ( class_exists('Debug_Bar', false) && file_exists(dirname(__FILE__) . '/DebugBar') ) { + if ( + class_exists('Debug_Bar', false) + && class_exists('Debug_Bar_Panel', false) + && file_exists(dirname(__FILE__) . '/DebugBar') + ) { $this->debugBarExtension = $this->createDebugBarExtension(); } }