mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
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:
@@ -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'>
|
||||
|
||||
Reference in New Issue
Block a user