mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-30 16:17:56 +02:00
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
This commit is contained in:
parent
f06e4fc681
commit
77ab18f590
@ -1592,7 +1592,7 @@ function language_attributes($doctype = 'html') {
|
|||||||
$attributes[] = "dir=\"$dir\"";
|
$attributes[] = "dir=\"$dir\"";
|
||||||
|
|
||||||
if ( $lang = get_bloginfo('language') ) {
|
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\"";
|
$attributes[] = "lang=\"$lang\"";
|
||||||
|
|
||||||
if ( get_option('html_type') != 'text/html' || $doctype == 'xhtml' )
|
if ( get_option('html_type') != 'text/html' || $doctype == 'xhtml' )
|
||||||
|
Loading…
Reference in New Issue
Block a user