Make WordPress Core


Ignore:
Timestamp:
11/12/2020 02:41:19 PM (6 years ago)
Author:
ocean90
Message:

I18N: Revert [49236] for now to investigate alternative implementations.

See #39210, #51678, #26511.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/l10n/loadTextdomainJustInTime.php

    r49236 r49566  
    3333                add_filter( 'template_root', array( $this, 'filter_theme_root' ) );
    3434                wp_clean_themes_cache();
    35                 unset( $GLOBALS['wp_themes'], $GLOBALS['l10n'], $GLOBALS['l10n_unloaded'] );
    36 
    37                 /** @var WP_Textdomain_Registry $wp_textdomain_registry */
    38                 global $wp_textdomain_registry;
    39 
    40                 $wp_textdomain_registry->reset();
     35                unset( $GLOBALS['wp_themes'] );
     36                unset( $GLOBALS['l10n'] );
     37                unset( $GLOBALS['l10n_unloaded'] );
     38                _get_path_to_translation( null, true );
    4139        }
    4240
     
    4745                remove_filter( 'template_root', array( $this, 'filter_theme_root' ) );
    4846                wp_clean_themes_cache();
    49                 unset( $GLOBALS['wp_themes'], $GLOBALS['l10n'], $GLOBALS['l10n_unloaded'] );
    50 
    51                 /** @var WP_Textdomain_Registry $wp_textdomain_registry */
    52                 global $wp_textdomain_registry;
    53 
    54                 $wp_textdomain_registry->reset();
     47                unset( $GLOBALS['wp_themes'] );
     48                unset( $GLOBALS['l10n'] );
     49                unset( $GLOBALS['l10n_unloaded'] );
     50                _get_path_to_translation( null, true );
    5551
    5652                parent::tearDown();
     
    175171        /**
    176172         * @ticket 37997
    177          * @ticket 39210
    178173         */
    179174        public function test_plugin_translation_after_switching_locale_twice() {
     
    189184
    190185                $this->assertSame( 'Das ist ein Dummy Plugin', $expected_de_de );
    191                 $this->assertSame( 'Este es un plugin dummy', $expected_es_es );
     186                $this->assertSame( 'This is a dummy plugin', $expected_es_es );
    192187        }
    193188
Note: See TracChangeset for help on using the changeset viewer.