Changeset 18699
- Timestamp:
- 09/17/2011 08:46:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r18639 r18699 714 714 715 715 return $wp_query->is_404(); 716 } 717 718 /** 719 * Is the query the main query? 720 * 721 * @since 3.3.0 722 * 723 * @return bool 724 */ 725 function is_main_query() { 726 global $wp_query; 727 return $wp_query->is_main_query(); 716 728 } 717 729 … … 3468 3480 return (bool) $this->is_404; 3469 3481 } 3482 3483 /** 3484 * Is the query the main query? 3485 * 3486 * @since 3.3.0 3487 * 3488 * @return bool 3489 */ 3490 function is_main_query() { 3491 global $wp_the_query; 3492 return $wp_the_query === $this; 3493 } 3470 3494 } 3471 3495
Note: See TracChangeset
for help on using the changeset viewer.