From 77ab18f5909125c41602d9a7e2bcbd8b04541cba Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 30 Dec 2008 18:35:45 +0000 Subject: [PATCH] Fix html doctype check. Props zekrap. fixes #8745 for 2.7 git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10266 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 5653830799..f2e087149e 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -1592,7 +1592,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' )