Make WordPress Core

Ticket #56325: 56325.3.diff

File 56325.3.diff, 818 bytes (added by SergeyBiryukov, 3 years ago)

Refreshed after [54290]

  • src/wp-includes/blocks.php

     
    232232                array(),
    233233                $version
    234234        );
    235         if ( file_exists( str_replace( '.css', '-rtl.css', $style_path_norm ) ) ) {
    236                 wp_style_add_data( $style_handle, 'rtl', 'replace' );
    237         }
     235
    238236        if ( $has_style_file ) {
    239237                wp_style_add_data( $style_handle, 'path', $style_path_norm );
    240238        }
     
    241239
    242240        $rtl_file = str_replace( "$suffix.css", "-rtl$suffix.css", $style_path_norm );
    243241        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 );
    244244                wp_style_add_data( $style_handle, 'path', $rtl_file );
    245245        }
    246246