Make WordPress Core

Changeset 4775


Ignore:
Timestamp:
01/19/2007 10:10:33 PM (20 years ago)
Author:
markjaquith
Message:

use lang for text/html and xml:lang for all others. Props nickshanks. fixes #3608

File:
1 edited

Legend:

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

    r4691 r4775  
    915915        if ( $lang = get_bloginfo('language') ) {
    916916                if ( $dir ) $output .= ' ';
    917                 $output .= "lang=\"$lang\" xml:lang=\"$lang\"";
     917                if ( get_option('html_type') == 'text/html' )
     918                        $output .= "lang=\"$lang\"";
     919                else $output .= "xml:lang=\"$lang\"";
    918920        }
    919921
Note: See TracChangeset for help on using the changeset viewer.