Make WordPress Core


Ignore:
Timestamp:
09/18/2015 10:20:07 AM (9 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

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

    r34284 r34285  
    3030
    3131/**
    32  * Retrieve the currently-queried object. Wrapper for $wp_query->get_queried_object()
     32 * Retrieve the currently-queried object.
     33 *
     34 * Wrapper for WP_Query::get_queried_object().
    3335 *
    3436 * @since 3.1.0
    3537 * @access public
    3638 *
    37  * @global WP_Query $wp_query
    38  *
    39  * @return object
     39 * @global WP_Query $wp_query Global WP_Query instance.
     40 *
     41 * @return object Queried object.
    4042 */
    4143function get_queried_object() {
Note: See TracChangeset for help on using the changeset viewer.