From afd3c7eeb3415e68cb08855764bc5d4a6eb3b7ed Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 16 Nov 2012 22:18:33 +0000 Subject: [PATCH] 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 --- wp-admin/load-styles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/load-styles.php b/wp-admin/load-styles.php index 011ffb0d21..8ff93f52e4 100644 --- a/wp-admin/load-styles.php +++ b/wp-admin/load-styles.php @@ -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"; }