[wp-trac] [WordPress Trac] #38632: Ability to change a user language back to site's language is missing
WordPress Trac
noreply at wordpress.org
Wed Nov 2 21:34:38 UTC 2016
#38632: Ability to change a user language back to site's language is missing
----------------------------+-------------------------
Reporter: ocean90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7
Component: I18N | Version: trunk
Severity: normal | Keywords: 2nd-opinion
Focuses: administration |
----------------------------+-------------------------
Previously: #29783 and [https://wordpress.slack.com/archives/core-
restapi/p1478116084000281 related discussion on Slack]
In the admin (and via REST API #38528) it's currently not possible to set
a user language back to site's language. `get_user_locale()` falls back to
`get_locale()` only if the meta field is a falsy value.
`wp_dropdown_languages()` uses an empty string value for `en_US` which
gets replaced with `en_US` in
https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/user.php?rev=38705&marks=99-106#L99.
I'm not sure if there really needs to be a way for this so I'm moving this
to 4.7 for a decision.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38632>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list