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

git-svn-id: https://develop.svn.wordpress.org/trunk@10918 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-04-13 16:07:27 +00:00
parent fd57c70c84
commit 447dd72511
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class WP_Styles extends WP_Dependencies {
$tag .= apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle );
if ( 'rtl' === $this->text_direction && isset($this->registered[$handle]->extra['rtl']) && $this->registered[$handle]->extra['rtl'] ) {
if ( is_bool( $this->registered[$handle]->extra['rtl'] ) )
$rtl_href = str_replace( '.css', '-rtl.css', $href );
$rtl_href = $this->_css_href( str_replace( '.css', '-rtl.css', $this->registered[$handle]->src ), $ver, "$handle-rtl" );
else
$rtl_href = $this->_css_href( $this->registered[$handle]->extra['rtl'], $ver, "$handle-rtl" );