File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function get_locale() {
3838 $ locale = WPLANG ;
3939
4040 if (empty ($ locale ))
41- $ locale = '' ;
41+ $ locale = 'en_US ' ;
4242
4343 $ locale = apply_filters ('locale ' , $ locale );
4444
@@ -263,8 +263,6 @@ function load_textdomain($domain, $mofile) {
263263 */
264264function load_default_textdomain () {
265265 $ locale = get_locale ();
266- if ( empty ($ locale ) )
267- $ locale = 'en_US ' ;
268266
269267 $ mofile = ABSPATH . LANGDIR . "/ $ locale.mo " ;
270268
@@ -291,8 +289,6 @@ function load_default_textdomain() {
291289 */
292290function load_plugin_textdomain ($ domain , $ path = false ) {
293291 $ locale = get_locale ();
294- if ( empty ($ locale ) )
295- $ locale = 'en_US ' ;
296292
297293 if ( false === $ path )
298294 $ path = PLUGINDIR ;
@@ -315,8 +311,6 @@ function load_plugin_textdomain($domain, $path = false) {
315311 */
316312function load_theme_textdomain ($ domain ) {
317313 $ locale = get_locale ();
318- if ( empty ($ locale ) )
319- $ locale = 'en_US ' ;
320314
321315 $ mofile = get_template_directory () . "/ $ locale.mo " ;
322316 load_textdomain ($ domain , $ mofile );
You can’t perform that action at this time.
0 commit comments