Make WordPress Core

Changeset 15376


Ignore:
Timestamp:
07/07/2010 08:35:51 PM (14 years ago)
Author:
nacin
Message:

Only ask for active_sitewide_plugins in deactivate_plugins() if we're running multisite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r15268 r15376  
    516516 */
    517517function deactivate_plugins( $plugins, $silent = false ) {
    518     $network_current = get_site_option( 'active_sitewide_plugins', array() );
     518    if ( is_multisite() )
     519        $network_current = get_site_option( 'active_sitewide_plugins', array() );
    519520    $current = get_option( 'active_plugins', array() );
    520521    $do_blog = $do_network = false;
Note: See TracChangeset for help on using the changeset viewer.