[wp-trac] [WordPress Trac] #56325: Some blocks' RTL stylesheets not loading when RTL language is set
WordPress Trac
noreply at wordpress.org
Fri Sep 23 07:37:10 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 Ankit K Gupta):
== Test Report
=== Env
* WordPress - 6.1-beta1-54282
* Chrome Version - 105.0.5195.125 (Official Build) (x86_64)
* OS - macOS Monterey V12.3.1
* Theme: Twenty Twenty Two
* PHP - 8.0.0
* Web Server - Apache
* Database - MySQL 5.7.28
* Used patch file -
https://core.trac.wordpress.org/attachment/ticket/56325/56325.2.diff
* SCRIPT_DEBUG - false
=== Steps to test
1. Add Navigation Block to the header
2. Switch site to RTL language (Persian)
3. Open site in front-end and view source.
4. Check the source of CSS
5. Apply the patch file, refresh page and check the CSS source.
6. RTL CSS should load now.
=== Test result
Performed some Manual Testing. RTL CSS is loading in RTL sites for
navigation block after the patch.
**Before Fix -**
{{{
<link rel='stylesheet' id='wp-block-navigation-css'
href='https://core.local/src/wp-
includes/blocks/navigation/style.min.css?ver=6.1-beta1-54282-src'
media='all' />
}}}
**After Fix -**
{{{
<link rel='stylesheet' id='wp-block-navigation-rtl-css'
href='https://core.local/src/wp-includes/blocks/navigation/style-
rtl.min.css?ver=6.1-beta1-54282-src' media='all' />
}}}
Thanks!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56325#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list