use lang for text/html and xml:lang for all others. Props nickshanks. fixes #3608
git-svn-id: https://develop.svn.wordpress.org/trunk@4775 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e842aa31f7
commit
c408fe6afa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user