Make WordPress Core

Changeset 51160


Ignore:
Timestamp:
06/15/2021 04:15:12 PM (5 years ago)
Author:
SergeyBiryukov
Message:

I18N: Remove redundant default text domain parameter in some __() calls.

Follow-up to [43919], [44262], [48141], [50259].

See #52627.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks.php

    r51159 r51160  
    8989                        sprintf(
    9090                                /* translators: 1: Field name, 2: Block name. */
    91                                 __( 'The asset file for the "%1$s" defined in "%2$s" block definition is missing.', 'default' ),
     91                                __( 'The asset file for the "%1$s" defined in "%2$s" block definition is missing.' ),
    9292                                $field_name,
    9393                                $metadata['name']
  • trunk/src/wp-includes/script-loader.php

    r51149 r51160  
    141141                                        ),
    142142                                        'longDateFormat' => array(
    143                                                 'LT'   => get_option( 'time_format', __( 'g:i a', 'default' ) ),
     143                                                'LT'   => get_option( 'time_format', __( 'g:i a' ) ),
    144144                                                'LTS'  => null,
    145145                                                'L'    => null,
    146                                                 'LL'   => get_option( 'date_format', __( 'F j, Y', 'default' ) ),
    147                                                 'LLL'  => __( 'F j, Y g:i a', 'default' ),
     146                                                'LL'   => get_option( 'date_format', __( 'F j, Y' ) ),
     147                                                'LLL'  => __( 'F j, Y g:i a' ),
    148148                                                'LLLL' => null,
    149149                                        ),
     
    263263                 */
    264264                if ( 'wp-i18n' === $handle ) {
    265                         $ltr    = _x( 'ltr', 'text direction', 'default' );
     265                        $ltr    = _x( 'ltr', 'text direction' );
    266266                        $script = sprintf( "wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ '%s' ] } );", $ltr );
    267267                        $scripts->add_inline_script( $handle, $script, 'after' );
Note: See TracChangeset for help on using the changeset viewer.