From dfdbbb4e62ec107b0c827fc89f956a972ae50aa9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 24 Nov 2021 23:59:59 +0000 Subject: [PATCH] Docs: Miscellaneous DocBlock corrections. See #53399. Built from https://develop.svn.wordpress.org/trunk@52242 git-svn-id: http://core.svn.wordpress.org/trunk@51834 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/file.php | 6 ++++-- wp-includes/js/media-views.js | 2 +- wp-includes/rest-api.php | 9 ++++++--- wp-includes/version.php | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 399fdcf629..2eb0111d09 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -1194,8 +1194,10 @@ function download_url( $url, $timeout = 300, $signature_verification = false ) { $tmpfname_disposition = ''; } - // Potential file name must be valid string - if ( $tmpfname_disposition && is_string( $tmpfname_disposition ) && ( 0 === validate_file( $tmpfname_disposition ) ) ) { + // Potential file name must be valid string. + if ( $tmpfname_disposition && is_string( $tmpfname_disposition ) + && ( 0 === validate_file( $tmpfname_disposition ) ) + ) { if ( rename( $tmpfname, $tmpfname_disposition ) ) { $tmpfname = $tmpfname_disposition; } diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js index 360f7c63a6..29e177a64e 100644 --- a/wp-includes/js/media-views.js +++ b/wp-includes/js/media-views.js @@ -8080,7 +8080,7 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{ // Enable page scrolling. $( 'body' ).removeClass( 'modal-open' ); - // Hide the modal element by adding display none. + // Hide the modal element by adding display:none. this.$el.hide(); /* diff --git a/wp-includes/rest-api.php b/wp-includes/rest-api.php index 517daf513c..30347a4b24 100644 --- a/wp-includes/rest-api.php +++ b/wp-includes/rest-api.php @@ -3056,7 +3056,8 @@ function rest_default_additional_properties_to_false( $schema ) { * @since 5.5.0 * * @param int|WP_Post $post Post ID or post object. - * @return string The route path with a leading slash for the given post, or an empty string if there is not a route. + * @return string The route path with a leading slash for the given post, + * or an empty string if there is not a route. */ function rest_get_route_for_post( $post ) { $post = get_post( $post ); @@ -3089,7 +3090,8 @@ function rest_get_route_for_post( $post ) { * @since 5.9.0 * * @param string $post_type The name of a registered post type. - * @return string The route path with a leading slash for the given post type, or an empty string if there is not a route. + * @return string The route path with a leading slash for the given post type, + * or an empty string if there is not a route. */ function rest_get_route_for_post_type_items( $post_type ) { $post_type = get_post_type_object( $post_type ); @@ -3122,7 +3124,8 @@ function rest_get_route_for_post_type_items( $post_type ) { * @since 5.5.0 * * @param int|WP_Term $term Term ID or term object. - * @return string The route path with a leading slash for the given term, or an empty string if there is not a route. + * @return string The route path with a leading slash for the given term, + * or an empty string if there is not a route. */ function rest_get_route_for_term( $term ) { $term = get_term( $term ); diff --git a/wp-includes/version.php b/wp-includes/version.php index f626e79900..3f5097791d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52241'; +$wp_version = '5.9-alpha-52242'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.