Ticket #16562: 16562.2.patch
| File 16562.2.patch, 786 bytes (added by hakre, 2 years ago) |
|---|
-
wp-admin/includes/plugin.php
563 563 function deactivate_plugins( $plugins, $silent = false ) { 564 564 if ( is_multisite() ) 565 565 $network_current = get_site_option( 'active_sitewide_plugins', array() ); 566 $current = get_option( 'active_plugins', array() );566 $current = (array) get_option( 'active_plugins', array() ); 567 567 $do_blog = $do_network = false; 568 568 569 569 foreach ( (array) $plugins as $plugin ) { … … 583 583 $key = array_search( $plugin, $current ); 584 584 if ( false !== $key ) { 585 585 $do_blog = true; 586 array_splice( $current, $key, 1);586 unset( $current[ $key ] ); 587 587 } 588 588 } 589 589
