From d78400e9190d918801ac40d58be7c856e89ec9db Mon Sep 17 00:00:00 2001 From: Yahnis Elsts Date: Sat, 9 Jan 2016 18:09:03 +0200 Subject: [PATCH] Minor: Suppress some IDE inspections (false positives). --- plugin-update-checker.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin-update-checker.php b/plugin-update-checker.php index 62c20de..41b5fe3 100644 --- a/plugin-update-checker.php +++ b/plugin-update-checker.php @@ -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' ); }