Make WordPress Core

Changeset 46288


Ignore:
Timestamp:
09/24/2019 12:53:09 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve consistency in @since tags for parameters that were made optional.

See #47110.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-privacy-policy-content.php

    r45932 r46288  
    300300     *
    301301     * @since 4.9.6
    302      * @since 5.0.0 The $post parameter is now optional.
     302     * @since 5.0.0 The `$post` parameter was made optional.
    303303     *
    304304     * @param WP_Post|null $post The currently edited post. Default null.
  • trunk/src/wp-admin/includes/media.php

    r46245 r46288  
    433433 *
    434434 * @since 2.6.0
    435  * @since 5.3.0 Made `$post_id` parameter optional.
     435 * @since 5.3.0 The `$post_id` parameter was made optional.
    436436 *
    437437 * @param array  $file_array Array similar to a `$_FILES` upload array.
     
    971971 * @since 4.2.0 Introduced the `$return` parameter.
    972972 * @since 4.8.0 Introduced the 'id' option within the `$return` parameter.
    973  * @since 5.3.0 Made the `$post_id` parameter optional
     973 * @since 5.3.0 The `$post_id` parameter was made optional.
    974974 *
    975975 * @param string $file    The URL of the image to download.
  • trunk/src/wp-includes/link-template.php

    r46236 r46288  
    982982 *
    983983 * @since 3.1.0
    984  * @since 4.5.0 The `$taxonomy` argument was made optional.
     984 * @since 4.5.0 The `$taxonomy` parameter was made optional.
    985985 *
    986986 * @param int    $term_id     Term ID.
  • trunk/src/wp-includes/post.php

    r46279 r46288  
    51145114 *
    51155115 * @since 1.5.0
    5116  * @since 4.6.0 Converted the `$page` parameter to optional.
     5116 * @since 4.6.0 The `$page` parameter was made optional.
    51175117 *
    51185118 * @param WP_Post|object|int $page Optional. Page ID or WP_Post object. Default is global $post.
Note: See TracChangeset for help on using the changeset viewer.