mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Docs: Add missing description for $wp_query and $wp_the_query globals.
Props mukesh27. See #45604, #47110. git-svn-id: https://develop.svn.wordpress.org/trunk@45739 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -406,7 +406,7 @@ do_action( 'sanitize_comment_cookies' );
|
||||
/**
|
||||
* WordPress Query object
|
||||
*
|
||||
* @global WP_Query $wp_the_query
|
||||
* @global WP_Query $wp_the_query WordPress Query object.
|
||||
* @since 2.0.0
|
||||
*/
|
||||
$GLOBALS['wp_the_query'] = new WP_Query();
|
||||
@@ -415,7 +415,7 @@ $GLOBALS['wp_the_query'] = new WP_Query();
|
||||
* Holds the reference to @see $wp_the_query
|
||||
* Use this global for WordPress queries
|
||||
*
|
||||
* @global WP_Query $wp_query
|
||||
* @global WP_Query $wp_query WordPress Query object.
|
||||
* @since 1.5.0
|
||||
*/
|
||||
$GLOBALS['wp_query'] = $GLOBALS['wp_the_query'];
|
||||
|
||||
Reference in New Issue
Block a user