Opened 10 years ago
Closed 10 years ago
#40271 closed defect (bug) (fixed)
Use get_user_locale() in Customizer
| Reported by: | swissspidy | Owned by: | swissspidy |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7.4 |
| Component: | Customize | Version: | 4.7 |
| Severity: | normal | Keywords: | has-patch commit fixed-major |
| Cc: | Focuses: |
Description
In wp-admin/customize.php, get_locale() is being used to add a locale-$sitelocalebody class, which leads to some CSS being applied to the customizer even though the locale isn't used.
To reproduce:
- Set user language to en_US
- Set site language to anything else, e.g. de_DE
- Notice that the body class is
locale-de-deand therefore some specific CSS for de_DE is being applied, even though all the text in the customizer is in en_US.
Attachments (1)
Change History (7)
This ticket was mentioned in Slack in #core-i18n by swissspidy. View the logs.
10 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 40368: