WordPress.org

Make WordPress Core

Changeset 34732


Ignore:
Timestamp:
10/01/2015 04:00:48 AM (4 years ago)
Author:
boonebgorges
Message:

Correct some WP_Query metadata lazyloading docs.

Props dlh.
Fixes #34047.

File:
1 edited

Legend:

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

    r34731 r34732  
    47694769     * @access public
    47704770     *
    4771      * @param null $check   The `$check` param passed from the 'pre_term_metadata' hook.
     4771     * @param mixed $check  The `$check` param passed from the 'get_term_metadata' hook.
    47724772     * @param int  $term_id ID of the term whose metadata is being cached.
    47734773     * @return mixed In order not to short-circuit `get_metadata()`. Generally, this is `null`, but it could be
     
    47774777        /*
    47784778         * We only do this once per `WP_Query` instance.
    4779          * Can't use `remove_action()` because of non-unique object hashes.
     4779         * Can't use `remove_filter()` because of non-unique object hashes.
    47804780         */
    47814781        if ( $this->updated_term_meta_cache ) {
     
    48404840     * @since 4.4.0
    48414841     *
    4842      * @param null $check      The `$check` param passed from the 'pre_comment_metadata' hook.
     4842     * @param mixed $check     The `$check` param passed from the 'get_comment_metadata' hook.
    48434843     * @param int  $comment_id ID of the comment whose metadata is being cached.
    4844      * @return null In order not to short-circuit `get_metadata()`.
     4844     * @return mixed The original value of `$check`, to not affect 'get_comment_metadata'.
    48454845     */
    48464846    public function lazyload_comment_meta( $check, $comment_id ) {
    48474847        /*
    48484848         * We only do this once per `WP_Query` instance.
    4849          * Can't use `remove_action()` because of non-unique object hashes.
     4849         * Can't use `remove_filter()` because of non-unique object hashes.
    48504850         */
    48514851        if ( $this->updated_comment_meta_cache ) {
Note: See TracChangeset for help on using the changeset viewer.