From 3dd79f85877a8a0a74f6c59fc98fa5ef8f6b7fbd Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 13 Apr 2009 16:07:27 +0000 Subject: [PATCH] Run RTL CSS urls through the style_loader_src filter. Props nbachiyski. fixes #9528 git-svn-id: http://svn.automattic.com/wordpress/trunk@10918 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class.wp-styles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class.wp-styles.php b/wp-includes/class.wp-styles.php index ccaf906d3..4888eb2ac 100644 --- a/wp-includes/class.wp-styles.php +++ b/wp-includes/class.wp-styles.php @@ -65,7 +65,7 @@ class WP_Styles extends WP_Dependencies { $tag .= apply_filters( 'style_loader_tag', "\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" );