Make WordPress Core

Changeset 54796


Ignore:
Timestamp:
11/10/2022 07:34:13 PM (19 months ago)
Author:
ocean90
Message:

I18N: Revert [54795] from the 6.1 branch.

This will be added again once committed to trunk first.

See #57060.

Location:
branches/6.1/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/6.1/src/wp-admin/includes/admin.php

    r54795 r54796  
    1414     * load_default_textdomain() will not have done so in this context.
    1515     */
    16     $admin_locale = get_locale();
    17     load_textdomain( 'default', WP_LANG_DIR . '/admin-' . $admin_locale . '.mo', $admin_locale );
    18     unset( $admin_locale );
     16    load_textdomain( 'default', WP_LANG_DIR . '/admin-' . get_locale() . '.mo' );
    1917}
    2018
  • branches/6.1/src/wp-includes/functions.php

    r54795 r54796  
    63486348        $mofile        = WP_LANG_DIR . '/continents-cities-' . $locale_loaded . '.mo';
    63496349        unload_textdomain( 'continents-cities' );
    6350         load_textdomain( 'continents-cities', $mofile, $locale_loaded );
     6350        load_textdomain( 'continents-cities', $mofile );
    63516351        $mo_loaded = true;
    63526352    }
  • branches/6.1/src/wp-includes/load.php

    r54795 r54796  
    13931393            foreach ( $locations as $location ) {
    13941394                if ( file_exists( $location . '/' . $locale . '.mo' ) ) {
    1395                     load_textdomain( 'default', $location . '/' . $locale . '.mo', $locale );
     1395                    load_textdomain( 'default', $location . '/' . $locale . '.mo' );
    13961396                    if ( defined( 'WP_SETUP_CONFIG' ) && file_exists( $location . '/admin-' . $locale . '.mo' ) ) {
    1397                         load_textdomain( 'default', $location . '/admin-' . $locale . '.mo', $locale );
     1397                        load_textdomain( 'default', $location . '/admin-' . $locale . '.mo' );
    13981398                    }
    13991399                    break 2;
  • branches/6.1/src/wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php

    r54795 r54796  
    337337        if ( ! is_admin() ) {
    338338            $locale = determine_locale();
    339             load_textdomain( 'default', WP_LANG_DIR . "/admin-$locale.mo", $locale );
     339            load_textdomain( 'default', WP_LANG_DIR . "/admin-$locale.mo" );
    340340        }
    341341    }
Note: See TracChangeset for help on using the changeset viewer.