WordPress.org

Make WordPress Core

Ticket #9735: 9735.patch

File 9735.patch, 949 bytes (added by hakre, 5 years ago)

Fixed.

  • wp-includes/class.wp-styles.php

     
    6565                $tag .= apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $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 = $this->_css_href( str_replace( '.css', '-rtl.css', $this->registered[$handle]->src ), $ver, "$handle-rtl" ); 
     68                                $rtl_href = str_replace( '.css', '-rtl.css', $this->_css_href( $this->registered[$handle]->src , $ver, "$handle-rtl" )); 
    6969                        else 
    7070                                $rtl_href = $this->_css_href( $this->registered[$handle]->extra['rtl'], $ver, "$handle-rtl" ); 
    7171