Changeset 54330
- Timestamp:
- 09/27/2022 03:41:15 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r54327 r54330 252 252 253 253 if ( $has_style_file ) { 254 if ( file_exists( str_replace( '.css', '-rtl.css', $style_path_norm ) ) ) { 254 wp_style_add_data( $style_handle, 'path', $style_path_norm ); 255 256 $rtl_file = str_replace( "{$suffix}.css", "-rtl{$suffix}.css", $style_path_norm ); 257 258 if ( is_rtl() && file_exists( $rtl_file ) ) { 255 259 wp_style_add_data( $style_handle, 'rtl', 'replace' ); 256 } 257 258 wp_style_add_data( $style_handle, 'path', $style_path_norm ); 259 260 $rtl_file = str_replace( "{$suffix}.css", "-rtl{$suffix}.css", $style_path_norm ); 261 if ( is_rtl() && file_exists( $rtl_file ) ) { 260 wp_style_add_data( $style_handle, 'suffix', $suffix ); 262 261 wp_style_add_data( $style_handle, 'path', $rtl_file ); 263 262 }
Note: See TracChangeset
for help on using the changeset viewer.