[wp-trac] [WordPress Trac] #57903: Non-core blocks are not properly loading RTL stylesheets
WordPress Trac
noreply at wordpress.org
Tue Mar 14 15:58:49 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 | Focuses: css, rtl
--------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"55544" 55544]:
{{{
#!CommitTicketReference repository="" revision="55544"
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.
Fixes #57903.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57903#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list