Make WordPress Core

Changeset 43520


Ignore:
Timestamp:
07/23/2018 05:01:02 PM (6 years ago)
Author:
kadamwhite
Message:

Docs: Update @since version to 4.9.8 for meta registration subtype handling.

This feature has been backported to 4.9.8 so 5.0.0 is inaccurate.

See #38323.

Location:
trunk/src/wp-includes
Files:
9 edited

Legend:

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

    r43381 r43520  
    305305                     * the meta key value, and the object subtype respectively.
    306306                     *
    307                      * @since 5.0.0
     307                     * @since 4.9.8
    308308                     *
    309309                     * @param bool     $allowed   Whether the user can add the object meta. Default false.
     
    351351                     * @since 4.6.0 As `auth_post_{$post_type}_meta_{$meta_key}`.
    352352                     * @since 4.7.0
    353                      * @deprecated 5.0.0 Use `auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}`
     353                     * @deprecated 4.9.8 Use `auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}`
    354354                     *
    355355                     * @param bool     $allowed   Whether the user can add the object meta. Default false.
     
    360360                     * @param string[] $caps      Array of the user's capabilities.
    361361                     */
    362                     $allowed = apply_filters_deprecated( "auth_{$object_type}_{$object_subtype}_meta_{$meta_key}", array( $allowed, $meta_key, $object_id, $user_id, $cap, $caps ), '5.0.0', "auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}" );
     362                    $allowed = apply_filters_deprecated( "auth_{$object_type}_{$object_subtype}_meta_{$meta_key}", array( $allowed, $meta_key, $object_id, $user_id, $cap, $caps ), '4.9.8', "auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}" );
    363363                }
    364364
  • trunk/src/wp-includes/meta.php

    r43385 r43520  
    975975 *
    976976 * @since 3.1.3
    977  * @since 5.0.0 The `$object_subtype` parameter was added.
     977 * @since 4.9.8 The `$object_subtype` parameter was added.
    978978 *
    979979 * @param string $meta_key       Meta key.
     
    993993         * the meta key value, and the object subtype respectively.
    994994         *
    995          * @since 5.0.0
     995         * @since 4.9.8
    996996         *
    997997         * @param mixed  $meta_value     Meta value to sanitize.
     
    10331033 *              to support an array of data to attach to registered meta keys}. Previous arguments for
    10341034 *              `$sanitize_callback` and `$auth_callback` have been folded into this array.
    1035  * @since 5.0.0 The `$object_subtype` argument was added to the arguments array.
     1035 * @since 4.9.8 The `$object_subtype` argument was added to the arguments array.
    10361036 *
    10371037 * @param string $object_type    Type of object this meta is registered to.
     
    11491149 *
    11501150 * @since 4.6.0
    1151  * @since 5.0.0 The `$object_subtype` parameter was added.
     1151 * @since 4.9.8 The `$object_subtype` parameter was added.
    11521152 *
    11531153 * @param string $object_type    The type of object.
     
    11681168 *
    11691169 * @since 4.6.0
    1170  * @since 5.0.0 The `$object_subtype` parameter was added.
     1170 * @since 4.9.8 The `$object_subtype` parameter was added.
    11711171 *
    11721172 * @param string $object_type    The type of object.
     
    12171217 *
    12181218 * @since 4.6.0
    1219  * @since 5.0.0 The `$object_subtype` parameter was added.
     1219 * @since 4.9.8 The `$object_subtype` parameter was added.
    12201220 *
    12211221 * @param string $object_type    The type of object. Post, comment, user, term.
     
    13011301 * Returns the object subtype for a given object ID of a specific type.
    13021302 *
    1303  * @since 5.0.0
     1303 * @since 4.9.8
    13041304 *
    13051305 * @param string $object_type Type of object to request metadata for. (e.g. comment, post, term, user)
     
    13541354     * type (post, comment, term, or user).
    13551355     *
    1356      * @since 5.0.0
     1356     * @since 4.9.8
    13571357     *
    13581358     * @param string $object_subtype Empty string to override.
  • trunk/src/wp-includes/post.php

    r43392 r43520  
    19931993 * Registers a meta key for posts.
    19941994 *
    1995  * @since 5.0.0
     1995 * @since 4.9.8
    19961996 *
    19971997 * @param string $post_type Post type to register a meta key for. Pass an empty string
     
    20112011 * Unregisters a meta key for posts.
    20122012 *
    2013  * @since 5.0.0
     2013 * @since 4.9.8
    20142014 *
    20152015 * @param string $post_type Post type the meta key is currently registered for. Pass
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php

    r43378 r43520  
    3131     * Retrieves the object meta subtype.
    3232     *
    33      * @since 5.0.0
     33     * @since 4.9.8
    3434     *
    3535     * @return string 'comment' There are no subtypes.
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php

    r43378 r43520  
    2828     * Retrieves the object meta subtype.
    2929     *
    30      * @since 5.0.0
     30     * @since 4.9.8
    3131     *
    3232     * @return string Subtype for the meta type, or empty string if no specific subtype.
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php

    r43378 r43520  
    5050     * Retrieves the object meta subtype.
    5151     *
    52      * @since 5.0.0
     52     * @since 4.9.8
    5353     *
    5454     * @return string Subtype for the meta type, or empty string if no specific subtype.
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php

    r43378 r43520  
    5050     * Retrieves the object meta subtype.
    5151     *
    52      * @since 5.0.0
     52     * @since 4.9.8
    5353     *
    5454     * @return string Subtype for the meta type, or empty string if no specific subtype.
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-user-meta-fields.php

    r43378 r43520  
    3131     * Retrieves the object meta subtype.
    3232     *
    33      * @since 5.0.0
     33     * @since 4.9.8
    3434     *
    3535     * @return string 'user' There are no subtypes.
  • trunk/src/wp-includes/taxonomy.php

    r43386 r43520  
    13261326 * Registers a meta key for terms.
    13271327 *
    1328  * @since 5.0.0
     1328 * @since 4.9.8
    13291329 *
    13301330 * @param string $taxonomy Taxonomy to register a meta key for. Pass an empty string
     
    13441344 * Unregisters a meta key for terms.
    13451345 *
    1346  * @since 5.0.0
     1346 * @since 4.9.8
    13471347 *
    13481348 * @param string $taxonomy Taxonomy the meta key is currently registered for. Pass
Note: See TracChangeset for help on using the changeset viewer.