diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 05f294f214..b1ce99ad5a 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -1597,7 +1597,7 @@ function language_attributes($doctype = 'html') { $attributes[] = "dir=\"$dir\""; if ( $lang = get_bloginfo('language') ) { - if ( get_option('html_type') == 'text/html' || $doctype == 'xhtml' ) + if ( get_option('html_type') == 'text/html' || $doctype == 'html' ) $attributes[] = "lang=\"$lang\""; if ( get_option('html_type') != 'text/html' || $doctype == 'xhtml' )