Ticket #35443: load.php.2.patch
File load.php.2.patch, 1.1 KB (added by , 8 years ago) |
---|
-
wp-includes/load.php
559 559 _deprecated_file( 'my-hacks.php', '1.5' ); 560 560 array_unshift( $plugins, ABSPATH . 'my-hacks.php' ); 561 561 } 562 563 if ( empty( $active_plugins ) || wp_installing() ) 562 563 $is_ativate = preg_match("/\/wp-activate\.php/", $_SERVER["REQUEST_URI"] ); 564 if ( empty( $active_plugins ) || wp_installing() && ! $is_ativate ){ 564 565 return $plugins; 566 } elseif ( $is_ativate ) { 567 /** 568 * Filter to allow selective loading of plugin when loading wp-activate.php on multi-site. 569 * move the plugin needed from the $active_plugins to the return $plugin array 570 * 571 * @since 4.5 572 * 573 * @param array empty array. 574 * @param array of plugins that can be loaded loaded. 575 */ 576 $active_plugins = apply_filters( 'wpmu_activate_plugins', $plugins, $active_plugins ); 577 if ( empty( $active_plugins ) ){ 578 return $plugins; 579 } 580 } 565 581 566 582 $network_plugins = is_multisite() ? wp_get_active_network_plugins() : false; 567 583