Docs: Fix some syntactical isses in the DocBlock for get_queried_object().

Also add descriptions for the return and the `WP_Query` global.

See #32246.

Built from https://develop.svn.wordpress.org/trunk@34285


git-svn-id: http://core.svn.wordpress.org/trunk@34249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-09-18 10:21:26 +00:00
parent 05f4e52541
commit 7a73dfbfb6
2 changed files with 6 additions and 4 deletions

View File

@ -29,14 +29,16 @@ function get_query_var( $var, $default = '' ) {
}
/**
* Retrieve the currently-queried object. Wrapper for $wp_query->get_queried_object()
* Retrieve the currently-queried object.
*
* Wrapper for WP_Query::get_queried_object().
*
* @since 3.1.0
* @access public
*
* @global WP_Query $wp_query
* @global WP_Query $wp_query Global WP_Query instance.
*
* @return object
* @return object Queried object.
*/
function get_queried_object() {
global $wp_query;

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34284';
$wp_version = '4.4-alpha-34285';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.