using check_admin_referer for plugin (de)activation
git-svn-id: https://develop.svn.wordpress.org/trunk@1299 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b18dff0309
commit
eac2b46462
@ -3,6 +3,9 @@
|
||||
if (isset($_GET['action'])) {
|
||||
$standalone = 1;
|
||||
require_once('admin-header.php');
|
||||
|
||||
check_admin_referer();
|
||||
|
||||
if ('activate' == $_GET['action']) {
|
||||
$current = "\n" . get_settings('active_plugins') . "\n";
|
||||
$current = preg_replace("|(\n)+\s*|", "\n", $current);
|
||||
|
Loading…
x
Reference in New Issue
Block a user