From c7f4cbc62c0daae4530209d29940f40716730e76 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 24 Sep 2019 12:54:57 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-privacy-policy-content.php | 2 +- wp-admin/includes/media.php | 4 ++-- wp-includes/link-template.php | 2 +- wp-includes/post.php | 2 +- wp-includes/version.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/class-wp-privacy-policy-content.php b/wp-admin/includes/class-wp-privacy-policy-content.php index 5ce9bdfbd6..030efefe1b 100644 --- a/wp-admin/includes/class-wp-privacy-policy-content.php +++ b/wp-admin/includes/class-wp-privacy-policy-content.php @@ -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. */ diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 745a1ec314..61c4dac627 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -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. diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 658497bfff..510d9a1243 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -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 diff --git a/wp-includes/post.php b/wp-includes/post.php index 63a71d9a1e..12a80e972a 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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. diff --git a/wp-includes/version.php b/wp-includes/version.php index 46d3657c0b..ea5989bda4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.