hackificator complains if you call include 'file.php' without the parens, needs to be include( 'file.php' )

See #27881.


git-svn-id: https://develop.svn.wordpress.org/trunk@28479 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2014-05-18 20:51:44 +00:00
parent af0851cc0d
commit 1b4e4e665a
11 changed files with 19 additions and 19 deletions

View File

@@ -938,7 +938,7 @@ function uninstall_plugin($plugin) {
define('WP_UNINSTALL_PLUGIN', $file);
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . dirname( $file ) );
include WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php';
include( WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php' );
return true;
}
@@ -950,7 +950,7 @@ function uninstall_plugin($plugin) {
unset($uninstallable_plugins);
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file );
include WP_PLUGIN_DIR . '/' . $file;
include( WP_PLUGIN_DIR . '/' . $file );
add_action( 'uninstall_' . $file, $callable );