Remove duplicate condition.
The triggerError method already checks for debugMode, there's no need to do it before.
This commit is contained in:
parent
d78400e919
commit
81f6d15828
|
|
@ -268,7 +268,7 @@ class PluginUpdateChecker_2_3 {
|
|||
$pluginInfo->filename = $this->pluginFile;
|
||||
$pluginInfo->slug = $this->slug;
|
||||
}
|
||||
} else if ( $this->debugMode ) {
|
||||
} else {
|
||||
$this->triggerError(
|
||||
sprintf('The URL %s does not point to a valid plugin metadata file. ', $url)
|
||||
. $status->get_error_message(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue