Make WordPress Core

Changeset 12772


Ignore:
Timestamp:
01/20/2010 07:37:53 AM (15 years ago)
Author:
dd32
Message:

Typo fix in Network Plugins. Props nacin. See #11881

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-load.php

    r12771 r12772  
    5454function ms_network_plugins() {
    5555    $network_plugins = array();
     56    $deleted_sitewide_plugins = array();
    5657    $wpmu_sitewide_plugins = (array) maybe_unserialize( get_site_option( 'wpmu_sitewide_plugins' ) );
    5758    foreach( $wpmu_sitewide_plugins as $plugin_file => $activation_time ) {
     
    5960            continue;
    6061
    61         if ( !file_exists( WP_PLUGIN_DIR . '/' . $plugin_file ) ) {
     62        if ( !file_exists( WP_PLUGIN_DIR . '/' . $plugin_file ) )
    6263            $deleted_sitewide_plugins[] = $plugin_file;
    63         } else {
    64             $network_plugins = WP_PLUGIN_DIR . '/' . $plugin_file;
    65         }
     64        else
     65            $network_plugins[] = WP_PLUGIN_DIR . '/' . $plugin_file;
    6666    }
    6767
    68     if ( isset( $deleted_sitewide_plugins ) ) {
     68    if ( !empty( $deleted_sitewide_plugins ) ) {
    6969        $active_sitewide_plugins = maybe_unserialize( get_site_option( 'active_sitewide_plugins' ) );
    7070
Note: See TracChangeset for help on using the changeset viewer.