Ticket #12135: general-template.php.diff
| File general-template.php.diff, 995 bytes (added by , 16 years ago) |
|---|
-
wp-includes/general-template.php
1884 1884 $attributes[] = "dir=\"$dir\""; 1885 1885 1886 1886 if ( $lang = get_bloginfo('language') ) { 1887 if ( get_option('html_type') == 'text/html' || $doctype == 'html' ) 1888 $attributes[] = "lang=\"$lang\""; 1889 1890 if ( get_option('html_type') != 'text/html' || $doctype == 'xhtml' ) 1887 // if doctype is passed as xhtml, use only xml:lang, that is supported by all XHTML versions 1888 if ( $doctype == 'xhtml' ) 1891 1889 $attributes[] = "xml:lang=\"$lang\""; 1890 // if MIME is not text/html, use xml:lang too 1891 elseif ( get_option('html_type') != 'text/html' ) 1892 $attributes[] = "xml:lang=\"$lang\""; 1893 // if doctype is not passed as xhtml and MIME is text/html, then use lang 1894 else 1895 $attributes[] = "lang=\"$lang\""; 1892 1896 } 1893 1897 1894 1898 $output = implode(' ', $attributes);