Make WordPress Core

Ticket #9528: filter-rtl-css-url.diff

File filter-rtl-css-url.diff, 873 bytes (added by nbachiyski, 17 years ago)
  • wp-includes/class.wp-styles.php

     
    6565                $tag .= apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle' $title href='$href' type='text/css' media='$media' />\n", $handle );
    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" );
    7171