[wp-trac] [WordPress Trac] #40271: Use get_user_locale() in Customizer
WordPress Trac
noreply at wordpress.org
Mon Mar 27 07:41:49 UTC 2017
#40271: Use get_user_locale() in Customizer
--------------------------+--------------------------------------
Reporter: swissspidy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7.4
Component: Customize | Version: 4.7
Severity: normal | Keywords: needs-patch dev-feedback
Focuses: |
--------------------------+--------------------------------------
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:
1. Set user language to en_US
2. Set site language to anything else, e.g. de_DE
3. 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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40271>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list