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:
Yahnis Elsts 2016-01-09 19:02:20 +02:00
parent 080dc83ac5
commit a26064220b
1 changed files with 1 additions and 1 deletions

View File

@ -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'.