mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-17 16:15:24 +01:00
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:
parent
34f9711beb
commit
0c95b3b457
@ -775,7 +775,9 @@ function activate_sitewide_plugin() {
|
|||||||
|
|
||||||
return true;
|
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()
|
* deactivate_sitewide_plugin()
|
||||||
@ -800,7 +802,8 @@ function deactivate_sitewide_plugin( $plugin = false ) {
|
|||||||
|
|
||||||
return true;
|
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' );
|
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()
|
* check_wpmu_plugins_on_bulk_activate()
|
||||||
|
Loading…
Reference in New Issue
Block a user