WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/03/2010 05:49:19 AM (12 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/media.php

    r14151 r14360  
    782782    $columns = intval($columns);
    783783    $itemwidth = $columns > 0 ? floor(100/$columns) : 100;
    784     $float = $wp_locale->text_direction == 'rtl' ? 'right' : 'left';
     784    $float = is_rtl() ? 'right' : 'left';
    785785
    786786    $selector = "gallery-{$instance}";
Note: See TracChangeset for help on using the changeset viewer.