Changeset 12772
- Timestamp:
- 01/20/2010 07:37:53 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-load.php
r12771 r12772 54 54 function ms_network_plugins() { 55 55 $network_plugins = array(); 56 $deleted_sitewide_plugins = array(); 56 57 $wpmu_sitewide_plugins = (array) maybe_unserialize( get_site_option( 'wpmu_sitewide_plugins' ) ); 57 58 foreach( $wpmu_sitewide_plugins as $plugin_file => $activation_time ) { … … 59 60 continue; 60 61 61 if ( !file_exists( WP_PLUGIN_DIR . '/' . $plugin_file ) ) {62 if ( !file_exists( WP_PLUGIN_DIR . '/' . $plugin_file ) ) 62 63 $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; 66 66 } 67 67 68 if ( isset( $deleted_sitewide_plugins ) ) {68 if ( !empty( $deleted_sitewide_plugins ) ) { 69 69 $active_sitewide_plugins = maybe_unserialize( get_site_option( 'active_sitewide_plugins' ) ); 70 70
Note: See TracChangeset
for help on using the changeset viewer.