Disable sitewide plugin actions that use unfiltered GET and generate warnings pending further scrutiny. see #11767

git-svn-id: http://svn.automattic.com/wordpress/trunk@12670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-01-08 20:15:22 +00:00
parent 34f9711beb
commit 0c95b3b457
1 changed files with 7 additions and 3 deletions

View File

@ -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()