Ticket #56325: 56325.2.diff
File 56325.2.diff, 803 bytes (added by , 3 years ago) |
---|
-
src/wp-includes/blocks.php
197 197 array(), 198 198 $version 199 199 ); 200 if ( file_exists( str_replace( '.css', '-rtl.css', $style_file ) ) ) { 201 wp_style_add_data( $style_handle, 'rtl', 'replace' ); 202 } 200 203 201 if ( $has_style_file ) { 204 202 wp_style_add_data( $style_handle, 'path', $style_file ); 205 203 } … … 206 204 207 205 $rtl_file = str_replace( "$suffix.css", "-rtl$suffix.css", $style_file ); 208 206 if ( is_rtl() && file_exists( $rtl_file ) ) { 207 wp_style_add_data( $style_handle, 'rtl', 'replace' ); 208 wp_style_add_data( $style_handle, 'suffix', $suffix ); 209 209 wp_style_add_data( $style_handle, 'path', $rtl_file ); 210 210 } 211 211