From c408fe6afa260e7c1ad74c3b2cebca2dea4cb981 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Fri, 19 Jan 2007 22:10:33 +0000 Subject: [PATCH] use lang for text/html and xml:lang for all others. Props nickshanks. fixes #3608 git-svn-id: https://develop.svn.wordpress.org/trunk@4775 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/general-template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 8d7e8e50c8..1434bc5fee 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -914,7 +914,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;