Changeset 53395 for trunk/src/wp-includes/query.php
- Timestamp:
- 05/14/2022 03:08:58 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r51154 r53395 901 901 function is_main_query() { 902 902 global $wp_query; 903 904 if ( ! isset( $wp_query ) ) { 905 _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '6.1.0' ); 906 return false; 907 } 903 908 904 909 if ( 'pre_get_posts' === current_filter() ) {
Note: See TracChangeset
for help on using the changeset viewer.