Actually remove deleted plugins from the active plugin list. This has been broken for ever. fixes #1709
git-svn-id: https://develop.svn.wordpress.org/trunk@2932 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
36183456c1
commit
cb59a1db62
@ -43,8 +43,11 @@ if ( !is_array($check_plugins) ) {
|
||||
foreach ($check_plugins as $check_plugin) {
|
||||
if (!file_exists(ABSPATH . 'wp-content/plugins/' . $check_plugin)) {
|
||||
$current = get_settings('active_plugins');
|
||||
unset($current[$_GET['plugin']]);
|
||||
update_option('active_plugins', $current);
|
||||
$key = array_search($check_plugin, $current);
|
||||
if ( false !== $key && NULL !== $key ) {
|
||||
unset($current[$key]);
|
||||
update_option('active_plugins', $current);
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user