Changeset 16558 for trunk/wp-includes/ms-load.php
- Timestamp:
- 11/24/2010 12:19:38 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/ms-load.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-load.php
r15551 r16558 24 24 25 25 return false; 26 } 27 28 /** 29 * Returns array of network plugin files to be included in global scope. 30 * 31 * The default directory is wp-content/plugins. To change the default directory 32 * manually, define <code>WP_PLUGIN_DIR</code> and <code>WP_PLUGIN_URL</code> 33 * in wp-config.php. 34 * 35 * @access private 36 * @since 3.1.0 37 * @return array Files to include 38 */ 39 function wp_get_active_network_plugins() { 40 $active_plugins = (array) get_site_option( 'active_sitewide_plugins', array() ); 41 if ( empty( $active_plugins ) ) 42 return array(); 43 44 $active_plugins = array_keys( $active_plugins ); 45 sort( $active_plugins ); 46 47 foreach ( $active_plugins as $plugin ) { 48 if ( ! validate_file( $plugin ) // $plugin must validate as file 49 && '.php' == substr( $plugin, -4 ) // $plugin must end with '.php' 50 && file_exists( WP_PLUGIN_DIR . '/' . $plugin ) // $plugin must exist 51 ) 52 $plugins[] = WP_PLUGIN_DIR . '/' . $plugin; 53 } 54 return $plugins; 26 55 } 27 56
Note: See TracChangeset
for help on using the changeset viewer.