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/script-loader.php

    r14353 r14360  
    434434    $styles->content_url = defined('WP_CONTENT_URL')? WP_CONTENT_URL : '';
    435435    $styles->default_version = get_bloginfo( 'version' );
    436     $styles->text_direction = 'rtl' == get_bloginfo( 'text_direction' ) ? 'rtl' : 'ltr';
     436    $styles->text_direction = function_exists( 'is_rtl' ) && is_rtl() ? 'rtl' : 'ltr';
    437437    $styles->default_dirs = array('/wp-admin/');
    438438
Note: See TracChangeset for help on using the changeset viewer.