Minor: Suppress some IDE inspections (false positives).

This commit is contained in:
Yahnis Elsts 2016-01-09 18:09:03 +02:00
parent 6999915d36
commit d78400e919
1 changed files with 2 additions and 0 deletions

View File

@ -372,6 +372,7 @@ class PluginUpdateChecker_2_3 {
}
if ( !function_exists('get_plugin_data') ){
/** @noinspection PhpIncludeInspection */
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
}
return get_plugin_data($this->pluginAbsolutePath, false, false);
@ -702,6 +703,7 @@ class PluginUpdateChecker_2_3 {
//filename anywhere. Instead, it has the plugin headers in $plugin_info. So the best we can
//do is compare those headers to the headers of installed plugins.
if ( !function_exists('get_plugins') ){
/** @noinspection PhpIncludeInspection */
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
}