Make WordPress Core


Ignore:
Timestamp:
08/04/2019 01:58:03 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing description for $wp_query and $wp_the_query globals.

Props mukesh27.
See #45604, #47110.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp.php

    r45735 r45739  
    561561         * @since 2.0.0
    562562         *
    563          * @global WP_Query     $wp_query
     563         * @global WP_Query     $wp_query     WordPress Query object.
    564564         * @global string       $query_string Query string for the loop.
    565          * @global array        $posts The found posts.
    566          * @global WP_Post|null $post The current post, if available.
    567          * @global string       $request The SQL statement for the request.
    568          * @global int          $more Only set, if single page or post.
    569          * @global int          $single If single page or post. Only set, if single page or post.
    570          * @global WP_User      $authordata Only set, if author archive.
     565         * @global array        $posts        The found posts.
     566         * @global WP_Post|null $post         The current post, if available.
     567         * @global string       $request      The SQL statement for the request.
     568         * @global int          $more         Only set, if single page or post.
     569         * @global int          $single       If single page or post. Only set, if single page or post.
     570         * @global WP_User      $authordata   Only set, if author archive.
    571571         */
    572572        public function register_globals() {
     
    607607         * @since 2.0.0
    608608         *
    609          * @global WP_Query $wp_the_query
     609         * @global WP_Query $wp_the_query WordPress Query object.
    610610         */
    611611        public function query_posts() {
     
    630630         * @since 2.0.0
    631631         *
    632          * @global WP_Query $wp_query
     632         * @global WP_Query $wp_query WordPress Query object.
    633633         */
    634634        public function handle_404() {
Note: See TracChangeset for help on using the changeset viewer.