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:
parent
d6b2024a7d
commit
1080c1e4ee
|
@ -606,7 +606,7 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
|
||||||
$key = array_search( $plugin, $current );
|
$key = array_search( $plugin, $current );
|
||||||
if ( false !== $key ) {
|
if ( false !== $key ) {
|
||||||
$do_blog = true;
|
$do_blog = true;
|
||||||
array_splice( $current, $key, 1 );
|
unset( $current[ $key ] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue