Changeset 16558 for trunk/wp-includes/load.php
- Timestamp:
- 11/24/2010 12:19:38 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/load.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/load.php
r15968 r16558 473 473 $active_plugins = (array) get_option( 'active_plugins', array() ); 474 474 475 // Get active network plugins476 if ( is_multisite() ) {477 $active_sitewide_plugins = (array) get_site_option( 'active_sitewide_plugins', array() );478 if ( !empty($active_sitewide_plugins) ) {479 $active_plugins = array_merge( $active_plugins, array_keys( $active_sitewide_plugins ) );480 sort( $active_plugins );481 }482 }483 484 475 // Check for hacks file if the option is enabled 485 476 if ( get_option( 'hack_file' ) && file_exists( ABSPATH . 'my-hacks.php' ) ) { … … 491 482 return $plugins; 492 483 484 $network_plugins = is_multisite() ? wp_get_active_network_plugins() : false; 485 493 486 foreach ( $active_plugins as $plugin ) { 494 487 if ( ! validate_file( $plugin ) // $plugin must validate as file 495 488 && '.php' == substr( $plugin, -4 ) // $plugin must end with '.php' 496 489 && file_exists( WP_PLUGIN_DIR . '/' . $plugin ) // $plugin must exist 490 // not already included as a network plugin 491 && ( ! $network_plugins || ! in_array( WP_PLUGIN_DIR . '/' . $plugin, $network_plugins ) ) 497 492 ) 498 493 $plugins[] = WP_PLUGIN_DIR . '/' . $plugin;
Note: See TracChangeset
for help on using the changeset viewer.