mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
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:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user