[wp-trac] [WordPress Trac] #56325: Some blocks' RTL stylesheets not loading when RTL language is set
WordPress Trac
noreply at wordpress.org
Tue Sep 27 15:41:29 UTC 2022
#56325: Some blocks' RTL stylesheets not loading when RTL language is set
-------------------------------------------------+-------------------------
Reporter: zoonini | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.1
Component: Editor | Version: 6.0
Severity: major | Resolution:
Keywords: has-patch needs-testing needs-unit- | Focuses: css, rtl
tests |
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
In [changeset:"54330" 54330]:
{{{
#!CommitTicketReference repository="" revision="54330"
Editor: Correctly load RTL stylesheets in `register_block_style_handle()`.
When setting an RTL language under Settings → General, some RTL
stylesheets were not loaded, with LTR stylesheets being loaded instead,
meaning that some blocks were not displayed correctly.
This commit ensures that all appropriate RTL stylesheets are loaded when
selecting an RTL language.
Additionally, this commit improves performance by only running a
`file_exists()` check for an RTL stylesheet if `is_rtl()` returns true,
i.e. an RTL locale is selected.
Follow-up to [49982], [50836].
Props zoonini, sabernhardt, maahrokh, ankit-k-gupta, aristath, poena,
SergeyBiryukov.
See #56325.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56325#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list