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
This commit is contained in:
parent
1b8d9bc0f3
commit
d02a3b83af
@ -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' )
|
||||
|
Loading…
Reference in New Issue
Block a user