[wp-trac] [WordPress Trac] #40205: Interim login modal window uses front end language instead of admin language
WordPress Trac
noreply at wordpress.org
Tue Jul 18 20:22:49 UTC 2017
#40205: Interim login modal window uses front end language instead of admin
language
-------------------------------------------+-----------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Login and Registration | Version: 4.7
Severity: normal | Resolution:
Keywords: needs-patch needs-screenshots | Focuses: administration
-------------------------------------------+-----------------------------
Comment (by swissspidy):
Thanks for the patch, @Nikschavan!
I don't think that logic should be inside `get_locale()` though. Plus,
there probably needs to be more robust sanitization.
We could add this to `wp-settings.php` directly, however we could also
leverage `switch_to_locale()` inside `wp-login.php`. Seems cleaner to me
this way.
Perhaps we could even add a link to switch the language back to the site's
locale if that makes sense.
Any thoughts?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40205#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list