From 73dd371cba120f8550072ba5144aac0e3538e424 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: https://develop.svn.wordpress.org/trunk@21904 602fd350-edb4-49c9-b593-d223f7449a82 --- 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' )