Ticket #56325: 56325.3.diff
File 56325.3.diff, 818 bytes (added by , 3 years ago) |
---|
-
src/wp-includes/blocks.php
232 232 array(), 233 233 $version 234 234 ); 235 if ( file_exists( str_replace( '.css', '-rtl.css', $style_path_norm ) ) ) { 236 wp_style_add_data( $style_handle, 'rtl', 'replace' ); 237 } 235 238 236 if ( $has_style_file ) { 239 237 wp_style_add_data( $style_handle, 'path', $style_path_norm ); 240 238 } … … 241 239 242 240 $rtl_file = str_replace( "$suffix.css", "-rtl$suffix.css", $style_path_norm ); 243 241 if ( is_rtl() && file_exists( $rtl_file ) ) { 242 wp_style_add_data( $style_handle, 'rtl', 'replace' ); 243 wp_style_add_data( $style_handle, 'suffix', $suffix ); 244 244 wp_style_add_data( $style_handle, 'path', $rtl_file ); 245 245 } 246 246