From 4185cade6d7f1718e6db09cbdcc15cdc1949ac5c Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 18 Sep 2012 23:08:46 +0000 Subject: [PATCH] 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 --- wp-includes/general-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 20b401cbd0..3859806087 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -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' )