Opened 8 years ago
Closed 8 years ago
#40271 closed defect (bug) (fixed)
Use get_user_locale() in Customizer
Reported by: | swissspidy | Owned by: | swissspidy |
---|---|---|---|
Milestone: | 4.7.4 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | Customize | Keywords: | has-patch commit fixed-major |
Focuses: | Cc: |
Description
In wp-admin/customize.php
, get_locale()
is being used to add a locale-$sitelocale
body 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-de
and 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)
Note: See
TracTickets for help on using
tickets.
In 40368: