From e889c2e647bd8a2a0d6d999e3241e21d140a091f Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Fri, 18 Sep 2015 10:26:58 +0000 Subject: [PATCH] Docs: Fix some syntactical issues in the documentation for `get_queried_object_id()`. Adds descriptions for the global `WP_Query` instance and the return. See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@34286 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 00b6fd5fe6..e0f7639531 100644 --- a/src/wp-includes/query.php +++ b/src/wp-includes/query.php @@ -46,14 +46,16 @@ function get_queried_object() { } /** - * Retrieve ID of the current queried object. Wrapper for $wp_query->get_queried_object_id() + * Retrieve ID of the current queried object. + * + * Wrapper for WP_Query::get_queried_object_id(). * * @since 3.1.0 * @access public * - * @global WP_Query $wp_query + * @global WP_Query $wp_query Global WP_Query instance. * - * @return int + * @return int ID of the queried object. */ function get_queried_object_id() { global $wp_query;