Ticket #23329: 23329.2.patch
File 23329.2.patch, 525 bytes (added by , 12 years ago) |
---|
-
wp-includes/query.php
720 720 * @return bool 721 721 */ 722 722 function is_main_query() { 723 if ( 'pre_get_posts' == current_filter() ) 724 _doing_it_wrong( __FUNCTION__, __( 'is_main_query() should not be used within the pre_get_posts action as it may not reflect the current query object.' ), '3.6' ); 725 723 726 global $wp_query; 724 727 return $wp_query->is_main_query(); 725 728 }