[wp-trac] [WordPress Trac] #57903: Non-core blocks are not properly loading RTL stylesheets

WordPress Trac noreply at wordpress.org
Sat Apr 8 09:15:36 UTC 2023


#57903: Non-core blocks are not properly loading RTL stylesheets
-----------------------------------+-----------------------------
 Reporter:  david.binda            |       Owner:  SergeyBiryukov
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:  6.2.1
Component:  Editor                 |     Version:  6.1.1
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  has-patch fixed-major  |     Focuses:  css, rtl
-----------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55635" 55635]:
 {{{
 #!CommitTicketReference repository="" revision="55635"
 Editor: Correctly load RTL stylesheets for non-core blocks.

 If `SCRIPT_DEBUG` is disabled, `register_block_style_handle()` loads core
 blocks' styles with the `.min` suffix, while non-core ones never use the
 minified files, but the suffix was still mistakenly included in the `-rtl`
 file lookup.

 This commit updates the logic to match the style path set earlier in the
 function, ensuring that RTL stylesheets are loaded properly for both core
 and non-core blocks, with or without `SCRIPT_DEBUG`.

 Follow-up to [49982], [50836], [54330], [55486].

 Props david.binda.
 Merges [55544] and [55547] to the 6.2 branch.
 Fixes #57903.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57903#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list