From 84d822fc46b568a4da0410ba619e432c9658e0a5 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 15 Jun 2021 16:16:57 +0000 Subject: [PATCH] I18N: Remove redundant `default` text domain parameter in some `__()` calls. Follow-up to [43919], [44262], [48141], [50259]. See #52627. Built from https://develop.svn.wordpress.org/trunk@51160 git-svn-id: http://core.svn.wordpress.org/trunk@50769 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/blocks.php | 2 +- wp-includes/script-loader.php | 8 ++++---- wp-includes/version.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index 020887acda..d4a0554fc0 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -88,7 +88,7 @@ function register_block_script_handle( $metadata, $field_name ) { __FUNCTION__, sprintf( /* translators: 1: Field name, 2: Block name. */ - __( 'The asset file for the "%1$s" defined in "%2$s" block definition is missing.', 'default' ), + __( 'The asset file for the "%1$s" defined in "%2$s" block definition is missing.' ), $field_name, $metadata['name'] ), diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index c2deca8217..2e1e6668cd 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -140,11 +140,11 @@ function wp_default_packages_vendor( $scripts ) { 'dow' => (int) get_option( 'start_of_week', 0 ), ), 'longDateFormat' => array( - 'LT' => get_option( 'time_format', __( 'g:i a', 'default' ) ), + 'LT' => get_option( 'time_format', __( 'g:i a' ) ), 'LTS' => null, 'L' => null, - 'LL' => get_option( 'date_format', __( 'F j, Y', 'default' ) ), - 'LLL' => __( 'F j, Y g:i a', 'default' ), + 'LL' => get_option( 'date_format', __( 'F j, Y' ) ), + 'LLL' => __( 'F j, Y g:i a' ), 'LLLL' => null, ), ) @@ -262,7 +262,7 @@ function wp_default_packages_scripts( $scripts ) { * is called before wp.i18n is defined. */ if ( 'wp-i18n' === $handle ) { - $ltr = _x( 'ltr', 'text direction', 'default' ); + $ltr = _x( 'ltr', 'text direction' ); $script = sprintf( "wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ '%s' ] } );", $ltr ); $scripts->add_inline_script( $handle, $script, 'after' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 178d5c7a4e..4d2c3e6c0d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-beta1-51159'; +$wp_version = '5.8-beta1-51160'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.