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:
Ryan Boren 2005-10-05 23:19:48 +00:00
parent 36183456c1
commit cb59a1db62
1 changed files with 5 additions and 2 deletions

View File

@ -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);
}
}
}
?>