Make WordPress Core

Ticket #6872: wp-6872.diff

File wp-6872.diff, 428 bytes (added by MarcoZ, 18 years ago)

In get_bloginfo, apply the same rule as used in many places in l10n.php. If get_locale returns an empty string, assume en_US (the blog hasn't been localized from its default English language).

  • wp-includes/general-template.php

     
    132132                        break;
    133133                case 'language':
    134134                        $output = get_locale();
     135                        if (empty($output))
     136                                $output = 'en_US';
    135137                        $output = str_replace('_', '-', $output);
    136138                        break;
    137139                case 'text_direction':