Use the key we found using array_search() to unset it from the array. props hakre. fixes #16562.

git-svn-id: http://core.svn.wordpress.org/trunk@21812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-09-11 02:12:34 +00:00
parent d6b2024a7d
commit 1080c1e4ee
1 changed files with 1 additions and 1 deletions

View File

@ -606,7 +606,7 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
$key = array_search( $plugin, $current );
if ( false !== $key ) {
$do_blog = true;
array_splice( $current, $key, 1 );
unset( $current[ $key ] );
}
}