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

git-svn-id: http://svn.automattic.com/wordpress/trunk@4775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-01-19 22:10:33 +00:00
parent 9ec6d7e762
commit 8c2ab4441b
1 changed files with 3 additions and 1 deletions

View File

@ -914,7 +914,9 @@ function language_attributes() {
$output = "dir=\"$dir\"";
if ( $lang = get_bloginfo('language') ) {
if ( $dir ) $output .= ' ';
$output .= "lang=\"$lang\" xml:lang=\"$lang\"";
if ( get_option('html_type') == 'text/html' )
$output .= "lang=\"$lang\"";
else $output .= "xml:lang=\"$lang\"";
}
echo $output;