Opened 6 years ago
Closed 6 years ago
#45547 closed defect (bug) (fixed)
Minified RTL package styles are not loaded due to wrong file name
Reported by: | vj1221 | Owned by: | |
---|---|---|---|
Milestone: | 5.0.2 | Priority: | normal |
Severity: | normal | Version: | 5.0 |
Component: | Script Loader | Keywords: | has-patch commit fixed-5.0 |
Focuses: | rtl | Cc: |
Description (last modified by )
WordPress version 5 calls for "style.min-rtl.css" file while the actual file name is "style-rtl.min.css".
Therefor an error registered in the console with a 404 code.
File location: /wp-includes/css/dist/block-library/style.min-rtl.css?ver=5.0
Should be: /wp-includes/css/dist/block-library/style-rtl.min.css?ver=5.0
Attachments (3)
Change History (21)
#2
in reply to:
↑ 1
@
6 years ago
Replying to sebastienserre:
Hello @vj1221 and many thanks for your ticket.
How can we reproduce this bug?
Hello @sebastienserre,
Just set the wordpress to RTL language (Hebrew/Arabic). Refresh the frontend and open developer tools in your browser. You will see the error caught in the console.
#3
@
6 years ago
OK I've reproduced it on WP5.0 but not in the dev version which is WP 5.1-alpha-43678 so I think there's a closed ticket somewhere (but i'm quiet new on Core Contributing and don't find it)
I think you'll have a better answer once everyone will be come back from WCUS ;-)
#5
@
6 years ago
- Component changed from General to Script Loader
- Description modified (diff)
- Milestone changed from Awaiting Review to 5.0.1
- Summary changed from Wrong css file name to Minified RTL package styles are not loaded due to wrong file name
#6
@
6 years ago
- Keywords has-patch added
45547.patch ensures the suffix is passed to the handle so the replacement for RTL styles can work correctly.
#8
@
6 years ago
IS there a solution for this issue?
Does this sometimes cause pages to load empty and you need to click Refresh to see content?
#9
@
6 years ago
hi,
i have the same problem. two files that named “style-rtl.min.css” and “theme-rtl.min.css” in directory “wp-includes/css/dist/block-library” is ok.
but when two files loaded, changed name in address to “style.min-rtl.css” and “theme.min-rtl.css”.
so error “net::ERR_ABORTED 404” show in inspect element.
i fixed this issue by change file name. please fixed it.
thanks
Hello @vj1221 and many thanks for your ticket.
How can we reproduce this bug?