- $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'];
- $content .= get_file($rtl_path) . "\n";
+ if ( $rtl && ! empty( $style->extra['rtl'] ) ) {
+ // All default styles have fully independent RTL files.
+ $path = str_replace( '.min.css', '-rtl.min.css', $path );