Ticket #11881: 11881.9.diff
File 11881.9.diff, 1.1 KB (added by , 15 years ago) |
---|
-
ms-load.php
65 65 66 66 function ms_network_plugins() { 67 67 $network_plugins = array(); 68 $deleted_sitewide_plugins = array(); 68 69 $wpmu_sitewide_plugins = (array) maybe_unserialize( get_site_option( 'wpmu_sitewide_plugins' ) ); 69 70 foreach( $wpmu_sitewide_plugins as $plugin_file => $activation_time ) { 70 71 if ( !$plugin_file ) 71 72 continue; 72 73 73 if ( !file_exists( WP_PLUGIN_DIR . '/' . $plugin_file ) ) {74 if ( !file_exists( WP_PLUGIN_DIR . '/' . $plugin_file ) ) 74 75 $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; 78 78 } 79 79 80 if ( isset( $deleted_sitewide_plugins ) ) {80 if ( !empty( $deleted_sitewide_plugins ) ) { 81 81 $active_sitewide_plugins = maybe_unserialize( get_site_option( 'active_sitewide_plugins' ) ); 82 82 83 83 /* Remove any deleted plugins from the wpmu_sitewide_plugins array */