mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Stop outputting the default dir="ltr" in language_attributes(). props bergius. fixes #16852.
git-svn-id: http://core.svn.wordpress.org/trunk@21904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
087b6ace16
commit
4185cade6d
@ -1846,8 +1846,8 @@ function language_attributes($doctype = 'html') {
|
||||
$attributes = array();
|
||||
$output = '';
|
||||
|
||||
if ( function_exists( 'is_rtl' ) )
|
||||
$attributes[] = 'dir="' . ( is_rtl() ? 'rtl' : 'ltr' ) . '"';
|
||||
if ( function_exists( 'is_rtl' ) && is_rtl() )
|
||||
$attributes[] = 'dir="rtl"';
|
||||
|
||||
if ( $lang = get_bloginfo('language') ) {
|
||||
if ( get_option('html_type') == 'text/html' || $doctype == 'html' )
|
||||
|
Loading…
Reference in New Issue
Block a user