From 15f373629ae4dd6135dba41b98c7cde08e3f03ea Mon Sep 17 00:00:00 2001 From: westi Date: Fri, 14 May 2010 21:22:14 +0000 Subject: [PATCH] Restore the correct behaviour of bloginfo('text_direction'). Fixes #13360. See #13206. git-svn-id: http://svn.automattic.com/wordpress/trunk@14646 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 1bc06994d..1ce58391c 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -463,7 +463,11 @@ function get_bloginfo( $show = '', $filter = 'raw' ) { break; case 'text_direction': //_deprecated_argument( __FUNCTION__, '2.2', sprintf( __('The %s option is deprecated for the family of bloginfo() functions.' ), $show ) . ' ' . sprintf( __( 'Use the %s function instead.' ), 'is_rtl()' ) ); - return function_exists( 'is_rtl' ) ? is_rtl() : 'ltr'; + if ( function_exists( 'is_rtl' ) ) { + $output = is_rtl() ? 'rtl' : 'ltr'; + } else { + $output = 'ltr'; + } break; case 'name': default: