Restore the correct behaviour of bloginfo('text_direction'). Fixes #13360. See #13206.

git-svn-id: https://develop.svn.wordpress.org/trunk@14646 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-05-14 21:22:14 +00:00
parent 3fe13109a2
commit 7d675404ca
1 changed files with 5 additions and 1 deletions

View File

@ -463,7 +463,11 @@ function get_bloginfo( $show = '', $filter = 'raw' ) {
break;
case 'text_direction':
//_deprecated_argument( __FUNCTION__, '2.2', sprintf( __('The <code>%s</code> option is deprecated for the family of <code>bloginfo()</code> functions.' ), $show ) . ' ' . sprintf( __( 'Use the <code>%s</code> 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: