From 19ce835654bf9278fea22a00cb324f20f580e7c6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 9 Feb 2021 12:34:06 +0000 Subject: [PATCH] Docs: Update some recently added inline comments per the documentation standards. Follow-up to [50256], [50258], [50259]. See #51800. Built from https://develop.svn.wordpress.org/trunk@50264 git-svn-id: http://core.svn.wordpress.org/trunk@49909 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 8 ++++---- wp-includes/js/media-views.js | 2 +- wp-includes/script-loader.php | 14 ++++++++------ wp-includes/version.php | 2 +- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 6626937568..93d850d606 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -430,10 +430,10 @@ function media_handle_upload( $file_id, $post_id, $post_data = array(), $overrid * @since 2.6.0 * @since 5.3.0 The `$post_id` parameter was made optional. * - * @param string[] $file_array Array that represents a `$_FILES` upload array. - * @param int $post_id Optional. The post ID the media is associated with. - * @param string $desc Optional. Description of the side-loaded file. Default null. - * @param array $post_data Optional. Post data to override. Default empty array. + * @param string[] $file_array Array that represents a `$_FILES` upload array. + * @param int $post_id Optional. The post ID the media is associated with. + * @param string $desc Optional. Description of the side-loaded file. Default null. + * @param array $post_data Optional. Post data to override. Default empty array. * @return int|WP_Error The ID of the attachment or a WP_Error on failure. */ function media_handle_sideload( $file_array, $post_id = 0, $desc = null, $post_data = array() ) { diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js index 596f3bca55..960c2e6982 100644 --- a/wp-includes/js/media-views.js +++ b/wp-includes/js/media-views.js @@ -4532,7 +4532,7 @@ Modal = wp.media.View.extend(/** @lends wp.media.view.Modal.prototype */{ return this; } - // Pause current audio/video even after closing the modal + // Pause current audio/video even after closing the modal. $( '.mejs-pause button' ).click(); // Enable page scrolling. diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index cde954418b..9680c4d8c6 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -268,12 +268,14 @@ function wp_default_packages_scripts( $scripts ) { $scripts->set_translations( $handle ); } - // Manually set the text direction localization after wp-i18n is - // printed. This ensures that wp.i18n.isRTL() returns true in RTL - // languages. We cannot use $scripts->set_translations( 'wp-i18n' ) to - // do this because WordPress prints a script's translations *before* - // printing the script, which means, in the case of wp-i18n, that - // wp.i18n.setLocaleData() is called before wp.i18n is defined. + /* + * Manually set the text direction localization after wp-i18n is printed. + * This ensures that wp.i18n.isRTL() returns true in RTL languages. + * We cannot use $scripts->set_translations( 'wp-i18n' ) to do this + * because WordPress prints a script's translations *before* the script, + * which means, in the case of wp-i18n, that wp.i18n.setLocaleData() + * is called before wp.i18n is defined. + */ if ( 'wp-i18n' === $handle ) { $ltr = _x( 'ltr', 'text direction', 'default' ); $script = sprintf( "wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ '%s' ] } );", $ltr ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 0b74af97b3..d312d5cd8f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-beta1-50263'; +$wp_version = '5.7-beta1-50264'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.