Changeset 47018 for trunk/src/wp-includes/query.php
- Timestamp:
- 12/28/2019 09:18:03 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r46660 r47018 624 624 625 625 /** 626 * Is the query for the robots file?626 * Is the query for the robots.txt file? 627 627 * 628 628 * @since 2.1.0 … … 641 641 642 642 return $wp_query->is_robots(); 643 } 644 645 /** 646 * Is the query for the favicon.ico file? 647 * 648 * @since 5.4.0 649 * 650 * @global WP_Query $wp_query WordPress Query object. 651 * 652 * @return bool 653 */ 654 function is_favicon() { 655 global $wp_query; 656 657 if ( ! isset( $wp_query ) ) { 658 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); 659 return false; 660 } 661 662 return $wp_query->is_favicon(); 643 663 } 644 664
Note: See TracChangeset
for help on using the changeset viewer.