From ba65211c290852eac63d9e2ce5bbca4b3b7f7100 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 15 Jun 2021 16:15:12 +0000 Subject: [PATCH] I18N: Remove redundant `default` text domain parameter in some `__()` calls. Follow-up to [43919], [44262], [48141], [50259]. See #52627. git-svn-id: https://develop.svn.wordpress.org/trunk@51160 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/blocks.php | 2 +- src/wp-includes/script-loader.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index 020887acda..d4a0554fc0 100644 --- a/src/wp-includes/blocks.php +++ b/src/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/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index c2deca8217..2e1e6668cd 100644 --- a/src/wp-includes/script-loader.php +++ b/src/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' ); }