mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
Fix RTL color stylesheet loading. Props hakre. fixes #9735
git-svn-id: http://svn.automattic.com/wordpress/trunk@11219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
85497e63a0
commit
1971247149
@ -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 );
|
$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 ( 'rtl' === $this->text_direction && isset($this->registered[$handle]->extra['rtl']) && $this->registered[$handle]->extra['rtl'] ) {
|
||||||
if ( is_bool( $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
|
else
|
||||||
$rtl_href = $this->_css_href( $this->registered[$handle]->extra['rtl'], $ver, "$handle-rtl" );
|
$rtl_href = $this->_css_href( $this->registered[$handle]->extra['rtl'], $ver, "$handle-rtl" );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user