Ticket #56325: 56325.4.diff
File 56325.4.diff, 789 bytes (added by , 3 years ago) |
---|
-
src/wp-includes/blocks.php
251 251 } 252 252 253 253 if ( $has_style_file ) { 254 if ( file_exists( str_replace( '.css', '-rtl.css', $style_path_norm ) ) ) {255 wp_style_add_data( $style_handle, 'rtl', 'replace' );256 }257 258 254 wp_style_add_data( $style_handle, 'path', $style_path_norm ); 259 255 260 256 $rtl_file = str_replace( "{$suffix}.css", "-rtl{$suffix}.css", $style_path_norm ); 257 261 258 if ( is_rtl() && file_exists( $rtl_file ) ) { 259 wp_style_add_data( $style_handle, 'rtl', 'replace' ); 260 wp_style_add_data( $style_handle, 'suffix', $suffix ); 262 261 wp_style_add_data( $style_handle, 'path', $rtl_file ); 263 262 } 264 263 }