From d02a3b83afdb24cd50894eb7bf1e3ac90e1535f2 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 30 Dec 2008 18:35:31 +0000 Subject: [PATCH] Fix html doctype check. Props zekrap. fixes #8745 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@10265 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/general-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' )