mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
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
This commit is contained in:
parent
21442085fc
commit
66bd2ed3dc
@ -1597,7 +1597,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…
x
Reference in New Issue
Block a user