From 4d7c88f4a49eb578fba62743638f208439e6c4e3 Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 3 May 2010 05:49:19 +0000 Subject: [PATCH] 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: http://svn.automattic.com/wordpress/trunk@14360 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/plugins/hello.php | 2 +- wp-includes/functions.php | 8 ++------ wp-includes/general-template.php | 15 ++++++--------- wp-includes/js/tinymce/wp-mce-help.php | 2 +- wp-includes/locale.php | 20 ++++++++++++++++++++ wp-includes/media.php | 2 +- wp-includes/post-template.php | 2 +- wp-includes/script-loader.php | 2 +- wp-includes/theme.php | 2 +- 9 files changed, 34 insertions(+), 21 deletions(-) diff --git a/wp-content/plugins/hello.php b/wp-content/plugins/hello.php index 4f6d785b40..2877f08346 100644 --- a/wp-content/plugins/hello.php +++ b/wp-content/plugins/hello.php @@ -62,7 +62,7 @@ add_action('admin_footer', 'hello_dolly'); // We need some CSS to position the paragraph function dolly_css() { // This makes sure that the posinioning is also good for right-to-left languages - $x = ( 'rtl' == get_bloginfo( 'text_direction' ) ) ? 'left' : 'right'; + $x = ( is_rtl() ) ? 'left' : 'right'; echo " -text_direction) ) : ?> +