Disable sitewide plugin actions that use unfiltered GET and generate warnings pending further scrutiny. see #11767
git-svn-id: https://develop.svn.wordpress.org/trunk@12670 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fbbf18d6c7
commit
6a4dae4be0
@ -775,7 +775,9 @@ function activate_sitewide_plugin() {
|
||||
|
||||
return true;
|
||||
}
|
||||
add_action( 'activate_' . $_GET['plugin'], 'activate_sitewide_plugin' );
|
||||
|
||||
// @todo Throws warning if plugin is not set. Kinda janky.
|
||||
//add_action( 'activate_' . $_GET['plugin'], 'activate_sitewide_plugin' );
|
||||
|
||||
/**
|
||||
* deactivate_sitewide_plugin()
|
||||
@ -800,7 +802,8 @@ function deactivate_sitewide_plugin( $plugin = false ) {
|
||||
|
||||
return true;
|
||||
}
|
||||
add_action( 'deactivate_' . $_GET['plugin'], 'deactivate_sitewide_plugin' );
|
||||
// @todo Throws warning if plugin is not set. Kinda janky.
|
||||
//add_action( 'deactivate_' . $_GET['plugin'], 'deactivate_sitewide_plugin' );
|
||||
add_action( 'deactivate_invalid_plugin', 'deactivate_sitewide_plugin' );
|
||||
|
||||
/**
|
||||
@ -1009,7 +1012,8 @@ function check_is_wpmu_plugin_on_activate() {
|
||||
}
|
||||
}
|
||||
}
|
||||
add_action( 'activate_' . $_GET['plugin'], 'check_is_wpmu_plugin_on_activate' );
|
||||
// @todo Throws warning if plugin is not set. Kinda janky.
|
||||
//add_action( 'activate_' . $_GET['plugin'], 'check_is_wpmu_plugin_on_activate' );
|
||||
|
||||
/**
|
||||
* check_wpmu_plugins_on_bulk_activate()
|
||||
|
Loading…
Reference in New Issue
Block a user