Introduce is_rtl(). Use it in core. It only becomes defined when locale is loaded, so it's impossible to use it too early. Deprecate the get_bloginfo('text_direction') call. fixes #13206.

git-svn-id: https://develop.svn.wordpress.org/trunk@14360 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-05-03 05:49:19 +00:00
parent a49cbfa0b0
commit d5e5ccdd72
9 changed files with 34 additions and 21 deletions
+1 -1
View File
@@ -372,7 +372,7 @@ function get_body_class( $class = '' ) {
$classes = array();
if ( 'rtl' == get_bloginfo( 'text_direction' ) )
if ( is_rtl() )
$classes[] = 'rtl';
if ( is_front_page() )