💎 PREMIUM: Changeset/ - HD Photos!

Changeset 43557


Ignore:
Timestamp:
08/08/2018 04:27:34 PM (7 years ago)
Author:
rachelbaker
Message:

Docs: Update $meta_type descriptions to include ’term’ as a valid type in meta.php and class-wp-term-query.php.
Props macbookandrew.
Fixes #44751.

Location:
branches/4.9/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9/src/wp-includes/class-wp-term-query.php

    r43492 r43557  
    173173     *     @type string       $meta_value             Limit terms to those matching a specific metadata value.
    174174     *                                                Usually used in conjunction with `$meta_key`. Default empty.
    175      *     @type string       $meta_type              Type of object metadata is for (e.g., comment, post, or user).
     175     *     @type string       $meta_type              Type of object metadata is for (e.g., comment, post, term, or user).
    176176     *                                                Default empty.
    177177     *     @type string       $meta_compare           Comparison operator to test the 'meta_value'. Default empty.
  • branches/4.9/src/wp-includes/meta.php

    r43510 r43557  
    1818 * @global wpdb $wpdb WordPress database abstraction object.
    1919 *
    20  * @param string $meta_type  Type of object metadata is for (e.g., comment, post, or user)
     20 * @param string $meta_type  Type of object metadata is for (e.g., comment, post, term, or user).
    2121 * @param int    $object_id  ID of the object metadata is for
    2222 * @param string $meta_key   Metadata key
     
    5858     *
    5959     * The dynamic portion of the hook, `$meta_type`, refers to the meta
    60      * object type (comment, post, or user). Returning a non-null value
     60     * object type (comment, post, term, or user). Returning a non-null value
    6161     * will effectively short-circuit the function.
    6262     *
     
    8686     *
    8787     * The dynamic portion of the hook, `$meta_type`, refers to the meta
    88      * object type (comment, post, or user).
     88     * object type (comment, post, term, or user).
    8989     *
    9090     * @since 3.1.0
     
    113113     *
    114114     * The dynamic portion of the hook, `$meta_type`, refers to the meta
    115      * object type (comment, post, or user).
     115     * object type (comment, post, term, or user).
    116116     *
    117117     * @since 2.9.0
     
    135135 * @global wpdb $wpdb WordPress database abstraction object.
    136136 *
    137  * @param string $meta_type  Type of object metadata is for (e.g., comment, post, or user)
     137 * @param string $meta_type  Type of object metadata is for (e.g., comment, post, term, or user).
    138138 * @param int    $object_id  ID of the object metadata is for
    139139 * @param string $meta_key   Metadata key
     
    176176     *
    177177     * The dynamic portion of the hook, `$meta_type`, refers to the meta
    178      * object type (comment, post, or user). Returning a non-null value
     178     * object type (comment, post, term, or user). Returning a non-null value
    179179     * will effectively short-circuit the function.
    180180     *
     
    223223         *
    224224         * The dynamic portion of the hook, `$meta_type`, refers to the meta
    225          * object type (comment, post, or user).
     225         * object type (comment, post, term, or user).
    226226         *
    227227         * @since 2.9.0
     
    260260         *
    261261         * The dynamic portion of the hook, `$meta_type`, refers to the meta
    262          * object type (comment, post, or user).
     262         * object type (comment, post, term, or user).
    263263         *
    264264         * @since 2.9.0
     
    296296 * @global wpdb $wpdb WordPress database abstraction object.
    297297 *
    298  * @param string $meta_type  Type of object metadata is for (e.g., comment, post, or user)
     298 * @param string $meta_type  Type of object metadata is for (e.g., comment, post, term, or user).
    299299 * @param int    $object_id  ID of the object metadata is for
    300300 * @param string $meta_key   Metadata key
     
    336336     *
    337337     * The dynamic portion of the hook, `$meta_type`, refers to the meta
    338      * object type (comment, post, or user). Returning a non-null value
     338     * object type (comment, post, term, or user). Returning a non-null value
    339339     * will effectively short-circuit the function.
    340340     *
     
    380380     *
    381381     * The dynamic portion of the hook, `$meta_type`, refers to the meta
    382      * object type (comment, post, or user).
     382     * object type (comment, post, term, or user).
    383383     *
    384384     * @since 3.1.0
     
    422422     *
    423423     * The dynamic portion of the hook name, `$meta_type`, refers to the meta
    424      * object type (comment, post, or user).
     424     * object type (comment, post, term, or user).
    425425     *
    426426     * @since 2.9.0
     
    453453 * @since 2.9.0
    454454 *