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
This commit is contained in:
nacin
2010-05-03 05:49:19 +00:00
parent 2764e19bc5
commit 4d7c88f4a4
9 changed files with 34 additions and 21 deletions
+1 -1
View File
@@ -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 "
<style type='text/css'>