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:
Andrew Nacin 2012-09-18 23:08:46 +00:00
parent 73f5dd8a35
commit 73dd371cba
1 changed files with 2 additions and 2 deletions

View File

@ -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' )