diff options
Diffstat (limited to 'wp-includes/general-template.php')
| -rw-r--r-- | wp-includes/general-template.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 69470db..4a5d596 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -919,7 +919,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; |
