deactivate_plugins() fix from DD32. fixes #6309
git-svn-id: http://svn.automattic.com/wordpress/trunk@7416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7b9d864878
commit
06333bf7de
|
@ -116,7 +116,10 @@ function deactivate_plugins($plugins) {
|
|||
$plugins = array($plugins);
|
||||
|
||||
foreach ( $plugins as $plugin ) {
|
||||
array_splice($current, array_search( $plugin, $current), 1 ); // Array-fu!
|
||||
$item = array_search( $plugin, $current);
|
||||
if( false === $item)
|
||||
continue;
|
||||
array_splice($current, $item, 1 ); // Array-fu!
|
||||
do_action('deactivate_' . trim( $plugin ));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue