using check_admin_referer for plugin (de)activation
git-svn-id: http://svn.automattic.com/wordpress/trunk@1299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cc35b0c6bd
commit
0dbe04e28e
|
@ -3,6 +3,9 @@
|
||||||
if (isset($_GET['action'])) {
|
if (isset($_GET['action'])) {
|
||||||
$standalone = 1;
|
$standalone = 1;
|
||||||
require_once('admin-header.php');
|
require_once('admin-header.php');
|
||||||
|
|
||||||
|
check_admin_referer();
|
||||||
|
|
||||||
if ('activate' == $_GET['action']) {
|
if ('activate' == $_GET['action']) {
|
||||||
$current = "\n" . get_settings('active_plugins') . "\n";
|
$current = "\n" . get_settings('active_plugins') . "\n";
|
||||||
$current = preg_replace("|(\n)+\s*|", "\n", $current);
|
$current = preg_replace("|(\n)+\s*|", "\n", $current);
|
||||||
|
|
Loading…
Reference in New Issue