WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/03/2010 05:49:19 AM (10 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/plugins/hello.php

    r13377 r14360  
    6363function dolly_css() {
    6464    // This makes sure that the posinioning is also good for right-to-left languages
    65     $x = ( 'rtl' == get_bloginfo( 'text_direction' ) ) ? 'left' : 'right';
     65    $x = ( is_rtl() ) ? 'left' : 'right';
    6666
    6767    echo "
Note: See TracChangeset for help on using the changeset viewer.