Make WordPress Core

Ticket #56325: 56325.2.diff

File 56325.2.diff, 803 bytes (added by SergeyBiryukov, 3 years ago)
  • src/wp-includes/blocks.php

     
    197197                array(),
    198198                $version
    199199        );
    200         if ( file_exists( str_replace( '.css', '-rtl.css', $style_file ) ) ) {
    201                 wp_style_add_data( $style_handle, 'rtl', 'replace' );
    202         }
     200
    203201        if ( $has_style_file ) {
    204202                wp_style_add_data( $style_handle, 'path', $style_file );
    205203        }
     
    206204
    207205        $rtl_file = str_replace( "$suffix.css", "-rtl$suffix.css", $style_file );
    208206        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 );
    209209                wp_style_add_data( $style_handle, 'path', $rtl_file );
    210210        }
    211211