From d5e5ccdd725d7b460089426e12ca466cec2586c2 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@14360 602fd350-edb4-49c9-b593-d223f7449a82 --- 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) ) : ?> +