mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
05f4e52541
commit
7a73dfbfb6
@ -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;
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user