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

See #47110.
Built from https://develop.svn.wordpress.org/trunk@46288


git-svn-id: http://core.svn.wordpress.org/trunk@46100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-09-24 12:54:57 +00:00
parent b35c5b9746
commit c7f4cbc62c
5 changed files with 6 additions and 6 deletions

View File

@ -299,7 +299,7 @@ final class WP_Privacy_Policy_Content {
* Add a notice with a link to the guide when editing the privacy policy page.
*
* @since 4.9.6
* @since 5.0.0 The $post parameter is now optional.
* @since 5.0.0 The `$post` parameter was made optional.
*
* @param WP_Post|null $post The currently edited post. Default null.
*/

View File

@ -432,7 +432,7 @@ function media_handle_upload( $file_id, $post_id, $post_data = array(), $overrid
* Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload().
*
* @since 2.6.0
* @since 5.3.0 Made `$post_id` parameter optional.
* @since 5.3.0 The `$post_id` parameter was made optional.
*
* @param array $file_array Array similar to a `$_FILES` upload array.
* @param int $post_id Optional. The post ID the media is associated with.
@ -970,7 +970,7 @@ function wp_media_upload_handler() {
* @since 2.6.0
* @since 4.2.0 Introduced the `$return` parameter.
* @since 4.8.0 Introduced the 'id' option within the `$return` parameter.
* @since 5.3.0 Made the `$post_id` parameter optional
* @since 5.3.0 The `$post_id` parameter was made optional.
*
* @param string $file The URL of the image to download.
* @param int $post_id Optional. The post ID the media is to be associated with.

View File

@ -981,7 +981,7 @@ function edit_tag_link( $link = '', $before = '', $after = '', $tag = null ) {
* Retrieves the URL for editing a given term.
*
* @since 3.1.0
* @since 4.5.0 The `$taxonomy` argument was made optional.
* @since 4.5.0 The `$taxonomy` parameter was made optional.
*
* @param int $term_id Term ID.
* @param string $taxonomy Optional. Taxonomy. Defaults to the taxonomy of the term identified

View File

@ -5113,7 +5113,7 @@ function _page_traverse_name( $page_id, &$children, &$result ) {
* Sub pages will be in the "directory" under the parent page post name.
*
* @since 1.5.0
* @since 4.6.0 Converted the `$page` parameter to optional.
* @since 4.6.0 The `$page` parameter was made optional.
*
* @param WP_Post|object|int $page Optional. Page ID or WP_Post object. Default is global $post.
* @return string|false Page URI, false on error.

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.3-beta1-46287';
$wp_version = '5.3-beta1-46288';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.