From 4706230535206f5f0cc46ae542a9165084533b63 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Fri, 18 Sep 2015 10:20:07 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@34285 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/query.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/query.php b/src/wp-includes/query.php index 5b666a5b31..00b6fd5fe6 100644 --- a/src/wp-includes/query.php +++ b/src/wp-includes/query.php @@ -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;