Make WordPress Core


Ignore:
Timestamp:
04/13/2009 04:07:27 PM (16 years ago)
Author:
ryan
Message:

Run RTL CSS urls through the style_loader_src filter. Props nbachiyski. fixes #9528

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class.wp-styles.php

    r10899 r10918  
    6666        if ( 'rtl' === $this->text_direction && isset($this->registered[$handle]->extra['rtl']) && $this->registered[$handle]->extra['rtl'] ) {
    6767            if ( is_bool( $this->registered[$handle]->extra['rtl'] ) )
    68                 $rtl_href = str_replace( '.css', '-rtl.css', $href );
     68                $rtl_href = $this->_css_href( str_replace( '.css', '-rtl.css', $this->registered[$handle]->src ), $ver, "$handle-rtl" );
    6969            else
    7070                $rtl_href = $this->_css_href( $this->registered[$handle]->extra['rtl'], $ver, "$handle-rtl" );
Note: See TracChangeset for help on using the changeset viewer.