Make WordPress Core


Ignore:
Timestamp:
04/21/2012 12:45:53 AM (12 years ago)
Author:
nacin
Message:

Correct logic in deactivate_plugins() where network_wide = null. props SergeyBiryukov. fixes #20497.

File:
1 edited

Legend:

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

    r20525 r20555  
    594594
    595595        if ( false !== $network_wide ) {
    596             if ( ! is_plugin_active_for_network( $plugin ) )
     596            if ( is_plugin_active_for_network( $plugin ) ) {
     597                $do_network = true;
     598                unset( $network_current[ $plugin ] );
     599            } elseif ( $network_wide ) {
    597600                continue;
    598             $do_network = true;
    599             unset( $network_current[ $plugin ] );
     601            }
    600602        }
    601603
Note: See TracChangeset for help on using the changeset viewer.