Skip to content
Permalink
Browse files

Docs: Improve consistency in `@SInCE` tags for parameters that were m…

…ade optional.

See #47110.

git-svn-id: https://develop.svn.wordpress.org/trunk@46288 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Sep 24, 2019
1 parent f8688bb commit 98067df21fdb089c309c90014c55a62979c15694
@@ -299,7 +299,7 @@ public static function get_suggested_policy_text() {
* 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.
*/
@@ -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.
@@ -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
@@ -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.

0 comments on commit 98067df

Please sign in to comment.
You can’t perform that action at this time.