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:
Sergey Biryukov
2019-08-04 01:58:03 +00:00
parent 5af994b4ed
commit d19f4d7ff4
20 changed files with 84 additions and 84 deletions
@@ -61,7 +61,7 @@ class WP_Media_List_Table extends WP_List_Table {
}
/**
* @global WP_Query $wp_query
* @global WP_Query $wp_query WordPress Query object.
* @global array $post_mime_types
* @global array $avail_post_mime_types
* @global string $mode
@@ -136,7 +136,7 @@ class WP_Posts_List_Table extends WP_List_Table {
/**
* @global array $avail_post_stati
* @global WP_Query $wp_query
* @global WP_Query $wp_query WordPress Query object.
* @global int $per_page
* @global string $mode
*/
@@ -695,7 +695,7 @@ class WP_Posts_List_Table extends WP_List_Table {
}
/**
* @global WP_Query $wp_query
* @global WP_Query $wp_query WordPress Query object.
* @global int $per_page
* @param array $posts
* @param int $level
+1 -1
View File
@@ -525,7 +525,7 @@ function export_wp( $args = array() ) {
<?php
if ( $post_ids ) {
/**
* @global WP_Query $wp_query
* @global WP_Query $wp_query WordPress Query object.
*/
global $wp_query;
+2 -2
View File
@@ -1415,7 +1415,7 @@ function get_attachment_fields_to_edit( $post, $errors = null ) {
*
* @since 2.5.0
*
* @global WP_Query $wp_the_query
* @global WP_Query $wp_the_query WordPress Query object.
*
* @param int $post_id Optional. Post ID.
* @param array $errors Errors for attachment, if any.
@@ -2527,7 +2527,7 @@ jQuery(function($){
* @since 2.5.0
*
* @global wpdb $wpdb WordPress database abstraction object.
* @global WP_Query $wp_query
* @global WP_Query $wp_query WordPress Query object.
* @global WP_Locale $wp_locale WordPress date and time locale object.
* @global string $type
* @global string $tab