Make WordPress Core


Ignore:
Timestamp:
09/24/2006 07:29:32 PM (20 years ago)
Author:
ryan
Message:

Add language and text_direction attributes to bloginfo. Set lang and dir attributes in admin header's html tag. #3136

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r4210 r4217  
    127127                        global $wp_version;
    128128                        $output = $wp_version;
     129                        break;
     130                case 'language':
     131                        $output = get_locale();
     132                        if ( empty($output) )
     133                                $output = 'en-US';
     134                        $output = str_replace('_', '-', $output);
     135                        break;
     136                case 'text_direction':
     137                        global $wp_locale;
     138                        $output = $wp_locale->text_direction;
     139                        if ( empty($output) )
     140                                $output = 'ltr';
    129141                        break;
    130142                case 'name':
Note: See TracChangeset for help on using the changeset viewer.