Make WordPress Core

Ticket #56325: 56325.diff

File 56325.diff, 560 bytes (added by sabernhardt, 3 years ago)

PR 3096, without the extra tabs

  • src/wp-includes/blocks.php

     
    197197                array(),
    198198                $version
    199199        );
    200         if ( file_exists( str_replace( '.css', '-rtl.css', $style_file ) ) ) {
     200
     201        wp_style_add_data( $style_handle, 'suffix', $suffix );
     202
     203        if ( file_exists( str_replace( "$suffix.css", "-rtl$suffix.css", $style_file ) ) ) {
    201204                wp_style_add_data( $style_handle, 'rtl', 'replace' );
    202205        }
    203206        if ( $has_style_file ) {