WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/18/2015 10:26:58 AM (4 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/query.php

    r34285 r34286  
    4747
    4848/**
    49  * Retrieve ID of the current queried object. Wrapper for $wp_query->get_queried_object_id()
     49 * Retrieve ID of the current queried object.
     50 *
     51 * Wrapper for WP_Query::get_queried_object_id().
    5052 *
    5153 * @since 3.1.0
    5254 * @access public
    5355 *
    54  * @global WP_Query $wp_query
    55  *
    56  * @return int
     56 * @global WP_Query $wp_query Global WP_Query instance.
     57 *
     58 * @return int ID of the queried object.
    5759 */
    5860function get_queried_object_id() {
Note: See TracChangeset for help on using the changeset viewer.