Only ask for active_sitewide_plugins in deactivate_plugins() if we're running multisite.
git-svn-id: https://develop.svn.wordpress.org/trunk@15376 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
630cc3878b
commit
9d381db2cb
@ -515,6 +515,7 @@ function activate_plugin( $plugin, $redirect = '', $network_wide = false) {
|
||||
* @param bool $silent Optional, default is false. Prevent calling deactivate hook.
|
||||
*/
|
||||
function deactivate_plugins( $plugins, $silent = false ) {
|
||||
if ( is_multisite() )
|
||||
$network_current = get_site_option( 'active_sitewide_plugins', array() );
|
||||
$current = get_option( 'active_plugins', array() );
|
||||
$do_blog = $do_network = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user