Changeset 42343 for trunk/tests/phpunit/tests/l10n/getLocale.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n/getLocale.php
r40564 r42343 12 12 $locale = 'foo'; 13 13 14 $found = get_locale();14 $found = get_locale(); 15 15 $locale = $old_locale; 16 16 … … 24 24 global $locale; 25 25 $old_locale = $locale; 26 $locale = null;26 $locale = null; 27 27 28 28 update_option( 'WPLANG', 'en_GB' ); 29 29 update_site_option( 'WPLANG', 'es_ES' ); 30 30 31 $found = get_locale();31 $found = get_locale(); 32 32 $locale = $old_locale; 33 33 … … 45 45 global $locale; 46 46 $old_locale = $locale; 47 $locale = null;47 $locale = null; 48 48 49 49 update_site_option( 'WPLANG', 'es_ES' ); 50 50 51 $found = get_locale();51 $found = get_locale(); 52 52 $locale = $old_locale; 53 53 … … 65 65 global $locale; 66 66 $old_locale = $locale; 67 $locale = null;67 $locale = null; 68 68 69 69 update_option( 'WPLANG', 'es_ES' ); 70 70 71 $found = get_locale();71 $found = get_locale(); 72 72 $locale = $old_locale; 73 73 … … 79 79 global $locale; 80 80 $old_locale = $locale; 81 $locale = null;81 $locale = null; 82 82 83 $found = get_locale();83 $found = get_locale(); 84 84 $locale = $old_locale; 85 85
Note: See TracChangeset
for help on using the changeset viewer.