Fix minified RTL style loading via load-styles.php. props ocean90. fixes #22482.
git-svn-id: https://develop.svn.wordpress.org/trunk@22623 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a2d75840ce
commit
9ea97e9dd9
@ -120,7 +120,7 @@ foreach( $load as $handle ) {
|
||||
$content = get_file($path) . "\n";
|
||||
|
||||
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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user