Minor: Suppress some IDE inspections (false positives).
This commit is contained in:
parent
6999915d36
commit
d78400e919
|
|
@ -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' );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue