Make WordPress Core


Ignore:
Timestamp:
02/23/2010 11:46:07 PM (14 years ago)
Author:
nacin
Message:

Proper RTL + .dev.css support, first pass. See #12292

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r13310 r13351  
    434434
    435435    $rtl_styles = array( 'wp-admin', 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'plugin-install', 'farbtastic' );
     436    // Any rtl stylesheets that don't have a .dev version for ltr
     437    $no_suffix = array( 'farbtastic' );
    436438
    437439    // all colors stylesheets need to have the same query strings (cache manifest compat)
     
    469471    $styles->add( 'custom-navigation', "/wp-admin/css/custom-navigation$suffix.css", array(), '20100215' );
    470472
    471     foreach ( $rtl_styles as $rtl_style )
     473    foreach ( $rtl_styles as $rtl_style ) {
    472474        $styles->add_data( $rtl_style, 'rtl', true );
     475        if ( $suffix && ! in_array( $rtl_style, $no_suffix ) )
     476            $styles->add_data( $rtl_style, 'suffix', $suffix );
     477    }
    473478}
    474479
Note: See TracChangeset for help on using the changeset viewer.