Make WordPress Core


Ignore:
Timestamp:
06/19/2008 04:52:52 PM (16 years ago)
Author:
ryan
Message:

Always load RTL CSS in manifest. Props azaozz. fixes #7154

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/gears-manifest.php

    r8083 r8126  
    2626wp_default_styles($wp_styles);
    2727
    28 $get_lang = file_exists( ABSPATH . '/wp-config.php') ? file( ABSPATH . '/wp-config.php' ) : file( dirname(ABSPATH) . '/wp-config.php' );
    29 
    30 if ( is_array($get_lang) ) {
    31     foreach ( $get_lang as $val ) {
    32         if ( strpos( $val, "'WPLANG'" ) !== false ) {
    33             eval( $val );
    34             break;
    35         }
    36     }
    37 }
    38 
    39 if ( defined('WPLANG') && '' != WPLANG ) {
    40     if ( file_exists(ABSPATH . '/wp-content/languages') && @is_dir(ABSPATH . '/wp-content/languages') )
    41         $langdir = '/wp-content/languages/';
    42     else
    43         $langdir = '/wp-includes/languages/';
    44    
    45     $locale_file = ABSPATH . $langdir . WPLANG . '.php';
    46     if ( is_readable($locale_file) )
    47         include_once($locale_file);
    48 }
    49 
    50 $rtl = ( isset($text_direction) && 'rtl' == $text_direction ) ? true : false;
    51 
    5228$defaults = $man_version = '';
    5329foreach ( $wp_scripts->registered as $script ) {
     
    6743    $defaults .= '{ "url" : "' . $src . '?ver=' . $ver . '" },' . "\n";
    6844
    69     if ( $rtl && isset($style->extra['rtl']) && $style->extra['rtl'] ) {
     45    if ( isset($style->extra['rtl']) && $style->extra['rtl'] ) {
    7046        if ( is_bool( $style->extra['rtl'] ) )
    7147            $rtl_href = str_replace( '.css', '-rtl.css', $src );
Note: See TracChangeset for help on using the changeset viewer.