Ticket #23329: 23329.patch
File 23329.patch, 971 bytes (added by , 10 years ago) |
---|
-
wp-includes/deprecated.php
3364 3364 } 3365 3365 return false; 3366 3366 } 3367 3368 /** 3369 * Is the query the main query? 3370 * 3371 * @since 3.3.0 3372 * @deprecated 3.6.0 3373 * 3374 * @return bool 3375 */ 3376 function is_main_query() { 3377 _deprecated_function( __FUNCTION__, '3.6' ); 3378 3379 global $wp_query; 3380 return $wp_query->is_main_query(); 3381 } 3382 No newline at end of file -
wp-includes/query.php
712 712 return $wp_query->is_404(); 713 713 } 714 714 715 /**716 * Is the query the main query?717 *718 * @since 3.3.0719 *720 * @return bool721 */722 function is_main_query() {723 global $wp_query;724 return $wp_query->is_main_query();725 }726 727 715 /* 728 716 * The Loop. Post loop control. 729 717 */