fix for #317: part one, avoid activating the same plugin twice
git-svn-id: https://develop.svn.wordpress.org/trunk@1711 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e199349fb8
commit
636c018384
@ -8,7 +8,9 @@ if ( isset($_GET['action']) ) {
|
||||
|
||||
if ('activate' == $_GET['action']) {
|
||||
$current = get_settings('active_plugins');
|
||||
$current[] = trim( $_GET['plugin'] );
|
||||
if (!in_array($_GET['plugin'], $current)) {
|
||||
$current[] = trim( $_GET['plugin'] );
|
||||
}
|
||||
sort($current);
|
||||
update_option('active_plugins', $current);
|
||||
header('Location: plugins.php?activate=true');
|
||||
|
Loading…
Reference in New Issue
Block a user