From f48b7b73a11382eff31f213c4bb9818e9e4de99b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 6 May 2009 17:47:58 +0000 Subject: [PATCH] Fix RTL color stylesheet loading. Props hakre. fixes #9735 git-svn-id: https://develop.svn.wordpress.org/trunk@11219 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 d2bb22bdad..b0a1bdd233 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 = $this->_css_href( str_replace( '.css', '-rtl.css', $this->registered[$handle]->src ), $ver, "$handle-rtl" ); + $rtl_href = str_replace( '.css', '-rtl.css', $this->_css_href( $this->registered[$handle]->src , $ver, "$handle-rtl" )); else $rtl_href = $this->_css_href( $this->registered[$handle]->extra['rtl'], $ver, "$handle-rtl" );