Changeset 12713 for trunk/wp-settings.php
- Timestamp:
- 01/12/2010 09:28:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-settings.php
r12688 r12713 489 489 if ( $dh = opendir( WPMU_PLUGIN_DIR ) ) { 490 490 $mu_plugins = array (); 491 while ( ( $plugin = readdir( $dh ) ) !== false ) 492 if ( substr( $plugin, -4 ) == '.php' ) 491 while ( ( $plugin = readdir( $dh ) ) !== false ) { 492 if ( substr( $plugin, -4 ) == '.php' ) { 493 493 $mu_plugins[] = $plugin; 494 } 495 } 496 494 497 closedir( $dh ); 495 if( is_multisite() ) 496 sort( $mu_plugins ); 497 foreach( $mu_plugins as $mu_plugin ) 498 499 if( is_multisite() ) 500 sort( $mu_plugins ); 501 502 foreach( $mu_plugins as $mu_plugin ) { 498 503 include_once( WPMU_PLUGIN_DIR . '/' . $mu_plugin ); 504 } 499 505 } 500 506 } … … 503 509 * @since 3.0 504 510 */ 505 if( is_multisite() ) 506 ms_network_plugins(); 511 if( is_multisite() ) { 512 ms_network_plugins(); 513 } 507 514 508 515 do_action('muplugins_loaded'); … … 513 520 */ 514 521 if( is_multisite() ) { 515 516 522 ms_site_check(); 523 ms_network_cookies(); 517 524 } 518 525 /** … … 521 528 */ 522 529 if( !defined('COOKIEHASH') ) 523 530 define('COOKIEHASH', md5(get_option('siteurl'))); 524 531 525 532 /**
Note: See TracChangeset
for help on using the changeset viewer.