Stop outputting the default dir="ltr" in language_attributes(). props bergius. fixes #16852.
git-svn-id: https://develop.svn.wordpress.org/trunk@21904 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
73f5dd8a35
commit
73dd371cba
|
@ -1846,8 +1846,8 @@ function language_attributes($doctype = 'html') {
|
||||||
$attributes = array();
|
$attributes = array();
|
||||||
$output = '';
|
$output = '';
|
||||||
|
|
||||||
if ( function_exists( 'is_rtl' ) )
|
if ( function_exists( 'is_rtl' ) && is_rtl() )
|
||||||
$attributes[] = 'dir="' . ( is_rtl() ? 'rtl' : 'ltr' ) . '"';
|
$attributes[] = 'dir="rtl"';
|
||||||
|
|
||||||
if ( $lang = get_bloginfo('language') ) {
|
if ( $lang = get_bloginfo('language') ) {
|
||||||
if ( get_option('html_type') == 'text/html' || $doctype == 'html' )
|
if ( get_option('html_type') == 'text/html' || $doctype == 'html' )
|
||||||
|
|
Loading…
Reference in New Issue