Only ask for active_sitewide_plugins in deactivate_plugins() if we're running multisite.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9aaac543db
commit
77b0788dc8
|
@ -515,7 +515,8 @@ 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 ) {
|
||||
$network_current = get_site_option( 'active_sitewide_plugins', array() );
|
||||
if ( is_multisite() )
|
||||
$network_current = get_site_option( 'active_sitewide_plugins', array() );
|
||||
$current = get_option( 'active_plugins', array() );
|
||||
$do_blog = $do_network = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue