Don't fail on missing debug-bar-plugin.php

This commit is contained in:
dangoodman 2015-09-07 13:50:26 +03:00 committed by Dan
parent 155eff7964
commit 84c01cc523
1 changed files with 3 additions and 2 deletions

View File

@ -878,8 +878,9 @@ class PluginUpdateChecker_2_2 {
* Initialize the update checker Debug Bar plugin/add-on thingy.
*/
public function initDebugBarPanel() {
if ( class_exists('Debug_Bar', false) ) {
require_once dirname(__FILE__) . '/debug-bar-plugin.php';
$debugBarPlugin = dirname(__FILE__) . '/debug-bar-plugin.php';
if ( class_exists('Debug_Bar', false) && file_exists( $debugBarPlugin ) ) {
require_once $debugBarPlugin;
$this->debugBarPlugin = new PucDebugBarPlugin($this);
}
}