Make WordPress Core

Changeset 4217


Ignore:
Timestamp:
09/24/2006 07:29:32 PM (19 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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r4194 r4217  
    1414?>
    1515<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    16 <html xmlns="http://www.w3.org/1999/xhtml">
     16<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php bloginfo('text_direction'); ?>" lang="<?php bloginfo('language'); ?>" xml:lang="<?php bloginfo('language'); ?>">
    1717<head>
    1818<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
  • 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.