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:
Andrew Nacin 2012-09-18 23:08:46 +00:00
parent 087b6ace16
commit 4185cade6d

View File

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