Make WordPress Core

Changeset 46451


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

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

Props jrf.
See #47678.

Location:
trunk
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ajax-upgrader-skin.php

    r46125 r46451  
    7878     *
    7979     * @since 4.6.0
     80     * @since 5.3.0 Formalized the existing `...$args` parameter by adding it
     81     *              to the function signature.
    8082     *
    8183     * @param string|WP_Error $errors  Errors.
     
    111113     *
    112114     * @since 4.6.0
     115     * @since 5.3.0 Formalized the existing `...$args` parameter by adding it
     116     *              to the function signature.
    113117     *
    114118     * @param string|array|WP_Error $data    Log entry data.
  • trunk/src/wp-admin/includes/dashboard.php

    r46391 r46451  
    10561056 *
    10571057 * @since 2.5.0
     1058 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
     1059 *              by adding it to the function signature.
    10581060 *
    10591061 * @param string   $widget_id  The widget ID.
  • trunk/src/wp-admin/includes/media.php

    r46421 r46451  
    505505 *
    506506 * @since 2.5.0
     507 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
     508 *              by adding it to the function signature.
    507509 *
    508510 * @global int $body_id
  • 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.
  • trunk/src/wp-includes/category-template.php

    r46123 r46451  
    10551055 * Retrieve HTML list content for category list.
    10561056 *
     1057 * @since 2.1.0
     1058 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it
     1059 *              to the function signature.
     1060 *
    10571061 * @uses Walker_Category to create HTML list content.
    1058  * @since 2.1.0
    10591062 * @see Walker::walk() for parameters and return description.
    10601063 *
     
    10751078 * Retrieve HTML dropdown (select) content for category list.
    10761079 *
     1080 * @since 2.1.0
     1081 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it
     1082 *              to the function signature.
     1083 *
    10771084 * @uses Walker_CategoryDropdown to create HTML dropdown content.
    1078  * @since 2.1.0
    10791085 * @see Walker::walk() for parameters and return description.
    10801086 *
  • trunk/src/wp-includes/class-wp-dependency.php

    r46124 r46451  
    8888     *
    8989     * @since 2.6.0
     90     * @since 5.3.0 Formalized the existing `...$args` parameter by adding it
     91     *              to the function signature.
    9092     *
    9193     * @param ...$args Dependency information.
  • trunk/src/wp-includes/class-wp-user.php

    r46144 r46451  
    731731     *
    732732     * @since 2.0.0
     733     * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
     734     *              by adding it to the function signature.
    733735     *
    734736     * @see map_meta_cap()
  • trunk/src/wp-includes/class-wp-walker.php

    r46442 r46451  
    178178     *
    179179     * @since 2.1.0
     180     * @since 5.3.0 Formalized the existing `...$args` parameter by adding
     181     *              it to the function signature.
    180182     *
    181183     * @param array $elements  An array of elements.
     
    270272     *
    271273     * @since 2.7.0
     274     * @since 5.3.0 Formalized the existing `...$args` parameter by adding
     275     *              it to the function signature.
    272276     *
    273277     * @param array $elements
  • trunk/src/wp-includes/formatting.php

    r46396 r46451  
    48694869 *
    48704870 * @since 2.5.0
     4871 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
     4872 *              by adding it to the function signature.
     4873 *
    48714874 * @link https://secure.php.net/sprintf
    48724875 *
  • trunk/src/wp-includes/functions.php

    r46350 r46451  
    10491049 *
    10501050 * @since 1.5.0
     1051 * @since 5.3.0 Formalized the existing and already documented parameters
     1052 *              by adding `...$args` to the function signature.
    10511053 *
    10521054 * @param string|array $key   Either a query variable key, or an associative array of query variables.
  • trunk/src/wp-includes/plugin.php

    r46333 r46451  
    431431 *
    432432 * @since 1.2.0
     433 * @since 5.3.0 Formalized the existing and already documented `...$arg` parameter
     434 *              by adding it to the function signature.
    433435 *
    434436 * @global array $wp_filter         Stores all of the filters
  • trunk/src/wp-includes/post-template.php

    r46135 r46451  
    15311531 * Retrieve HTML dropdown (select) content for page list.
    15321532 *
     1533 * @since 2.1.0
     1534 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it
     1535 *              to the function signature.
     1536 *
    15331537 * @uses Walker_PageDropdown to create HTML dropdown content.
    1534  * @since 2.1.0
    15351538 * @see Walker_PageDropdown::walk() for parameters and return description.
    15361539 *
  • trunk/src/wp-includes/post.php

    r46437 r46451  
    18301830 *
    18311831 * @since 3.0.0
     1832 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
     1833 *              by adding it to the function signature.
    18321834 *
    18331835 * @global array $_wp_post_type_features
  • trunk/src/wp-includes/theme.php

    r46395 r46451  
    23582358 *              `editor-styles`, and `wp-block-styles` features were added.
    23592359 * @since 5.3.0 The `html5` feature now also accepts 'script' and 'style'.
     2360 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
     2361 *              by adding it to the function signature.
    23602362 *
    23612363 * @global array $_wp_theme_features
     
    26722674 *
    26732675 * @since 3.1.0
     2676 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
     2677 *              by adding it to the function signature.
    26742678 *
    26752679 * @global array $_wp_theme_features
     
    27922796 *
    27932797 * @since 2.9.0
     2798 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
     2799 *              by adding it to the function signature.
    27942800 *
    27952801 * @global array $_wp_theme_features
  • trunk/src/wp-includes/widgets.php

    r46147 r46451  
    345345 *
    346346 * @since 2.2.0
     347 * @since 5.3.0 Formalized the existing and already documented `...$params` parameter
     348 *              by adding it to the function signature.
    347349 *
    348350 * @global array $wp_registered_widgets            Uses stored registered widgets.
     
    482484 *
    483485 * @since 2.2.0
     486 * @since 5.3.0 Formalized the existing and already documented `...$params` parameter
     487 *              by adding it to the function signature.
    484488 *
    485489 * @global array $wp_registered_widget_controls
     
    557561 *
    558562 * @since 2.8.0
     563 * @since 5.3.0 Formalized the existing and already documented `...$params` parameter
     564 *              by adding it to the function signature.
    559565 *
    560566 * @global array $wp_registered_widget_updates
     
    589595 *
    590596 * @since 2.8.0
     597 * @since 5.3.0 Formalized the existing and already documented `...$params` parameter
     598 *              by adding it to the function signature.
    591599 *
    592600 * @global array $wp_registered_widget_controls
  • trunk/src/wp-includes/wp-db.php

    r46232 r46451  
    12811281     * @link https://secure.php.net/sprintf Description of syntax.
    12821282     * @since 2.3.0
     1283     * @since 5.3.0 Formalized the existing and already documented `...$args` parameter
     1284     *              by updating the function signature. The second parameter was changed
     1285     *              from `$args` to `...$args`.
    12831286     *
    12841287     * @param string      $query   Query statement with sprintf()-like placeholders
  • trunk/tests/phpunit/includes/abstract-testcase.php

    r46221 r46451  
    900900     * @since 2.5.0
    901901     * @since 3.8.0 Moved from `Tests_Query_Conditionals` to `WP_UnitTestCase`.
     902     * @since 5.3.0 Formalized the existing `...$prop` parameter by adding it
     903     *              to the function signature.
    902904     *
    903905     * @param string ...$prop Any number of WP_Query properties that are expected to be true for the current request.
Note: See TracChangeset for help on using the changeset viewer.