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:
Andrew Nacin 2012-11-16 22:18:33 +00:00
parent a2d75840ce
commit 9ea97e9dd9
1 changed files with 1 additions and 1 deletions

View File

@ -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";
}