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-includes/theme.php

    r14276 r14360  
    15811581    $editor_styles = (array) $editor_styles;
    15821582    $stylesheet    = (array) $stylesheet;
    1583     if ('rtl' == get_bloginfo('text_direction') ) {
     1583    if ( is_rtl() ) {
    15841584        $rtl_stylesheet = str_replace('.css', '-rtl.css', $stylesheet[0]);
    15851585        $stylesheet[] = $rtl_stylesheet;
Note: See TracChangeset for help on using the changeset viewer.