WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/09/2019 04:26:22 AM (6 weeks ago)
Author:
SergeyBiryukov
Message:

Docs: Add a @since note about new parameters with the spread operator added to function signatures.

Props jrf.
See #47678.

File:
1 edited

Legend:

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

    r46132 r46451  
    2626 *
    2727 * @since 2.0.0
     28 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
     29 *              by adding it to the function signature.
    2830 *
    2931 * @global array $post_type_meta_caps Used to get post type meta capabilities.
     
    636638 *
    637639 * @since 2.0.0
     640 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
     641 *              by adding it to the function signature.
    638642 *
    639643 * @see WP_User::has_cap()
     
    669673 *
    670674 * @since 3.0.0
     675 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
     676 *              by adding it to the function signature.
    671677 *
    672678 * @param int    $blog_id    Site ID.
     
    710716 *
    711717 * @since 2.9.0
     718 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
     719 *              by adding it to the function signature.
    712720 *
    713721 * @param int|WP_Post $post       Post ID or post object.
     
    745753 *
    746754 * @since 3.1.0
     755 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
     756 *              by adding it to the function signature.
    747757 *
    748758 * @param int|WP_User $user       User ID or object.
Note: See TracChangeset for help on using the changeset viewer.