Make WordPress Core

Ticket #11881: 11881.9.diff

File 11881.9.diff, 1.1 KB (added by nacin, 15 years ago)

Typo fix

  • ms-load.php

     
    6565
    6666function ms_network_plugins() {
    6767        $network_plugins = array();
     68        $deleted_sitewide_plugins = array();
    6869        $wpmu_sitewide_plugins = (array) maybe_unserialize( get_site_option( 'wpmu_sitewide_plugins' ) );
    6970        foreach( $wpmu_sitewide_plugins as $plugin_file => $activation_time ) {
    7071                if ( !$plugin_file )
    7172                        continue;
    7273
    73                 if ( !file_exists( WP_PLUGIN_DIR . '/' . $plugin_file ) ) {
     74                if ( !file_exists( WP_PLUGIN_DIR . '/' . $plugin_file ) )
    7475                        $deleted_sitewide_plugins[] = $plugin_file;
    75                 } else {
    76                         $network_plugins = WP_PLUGIN_DIR . '/' . $plugin_file;
    77                 }
     76                else
     77                        $network_plugins[] = WP_PLUGIN_DIR . '/' . $plugin_file;
    7878        }
    7979
    80         if ( isset( $deleted_sitewide_plugins ) ) {
     80        if ( !empty( $deleted_sitewide_plugins ) ) {
    8181                $active_sitewide_plugins = maybe_unserialize( get_site_option( 'active_sitewide_plugins' ) );
    8282
    8383                /* Remove any deleted plugins from the wpmu_sitewide_plugins array */