Don't bother checking if WP_DEBUG is defined.
It's always defined. Checked as far back as WP 3.2. WordPress defines it in `/wp-includes/default-constants.php`.
This commit is contained in:
parent
080dc83ac5
commit
a26064220b
|
|
@ -58,7 +58,7 @@ class PluginUpdateChecker_2_3 {
|
|||
$this->checkPeriod = $checkPeriod;
|
||||
$this->slug = $slug;
|
||||
$this->optionName = $optionName;
|
||||
$this->debugMode = defined('WP_DEBUG') && WP_DEBUG;
|
||||
$this->debugMode = (bool)(constant('WP_DEBUG'));
|
||||
|
||||
//If no slug is specified, use the name of the main plugin file as the slug.
|
||||
//For example, 'my-cool-plugin/cool-plugin.php' becomes 'cool-plugin'.
|
||||
|
|
|
|||
Loading…
Reference in New Issue