From 66bd2ed3dc1e54957a879da03a637a03d46042db Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 30 Dec 2008 18:35:31 +0000 Subject: [PATCH] Fix html doctype check. Props zekrap. fixes #8745 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@10265 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 05f294f21..b1ce99ad5 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' )