Ticket #10886: lighter-load.3.patch
File lighter-load.3.patch, 643 bytes (added by , 15 years ago) |
---|
-
wp-blog-header.php
11 11 12 12 require_once( dirname(__FILE__) . '/wp-load.php' ); 13 13 14 wp(); 14 /** 15 * Return false with 'wp_main' to save queries when loading pages that do not 16 * have posts and pages that query their own posts. 17 * 18 * @since 2.9.0 19 * 20 * @param bool. 21 */ 22 if ( (bool) apply_filters( 'wp_main', true ) === true ) 23 wp(); 24 else 25 do_action_ref_array( 'wp', array( (object) array() ) ); 15 26 16 27 require_once( ABSPATH . WPINC . '/template-loader.php' ); 17 28