Fix minified RTL style loading via load-styles.php. props ocean90. fixes #22482.
git-svn-id: http://core.svn.wordpress.org/trunk@22623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
55dc9d1616
commit
afd3c7eeb3
|
@ -120,7 +120,7 @@ foreach( $load as $handle ) {
|
||||||
$content = get_file($path) . "\n";
|
$content = get_file($path) . "\n";
|
||||||
|
|
||||||
if ( $rtl && isset($style->extra['rtl']) && $style->extra['rtl'] ) {
|
if ( $rtl && isset($style->extra['rtl']) && $style->extra['rtl'] ) {
|
||||||
$rtl_path = is_bool($style->extra['rtl']) ? str_replace( '.css', '-rtl.css', $path ) : ABSPATH . $style->extra['rtl'];
|
$rtl_path = is_bool($style->extra['rtl']) ? str_replace( '.min.css', '-rtl.min.css', $path ) : ABSPATH . $style->extra['rtl'];
|
||||||
$content .= get_file($rtl_path) . "\n";
|
$content .= get_file($rtl_path) . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue