[wp-trac] [WordPress Trac] #49356: Add hook into get_user_locale()
WordPress Trac
noreply at wordpress.org
Thu Mar 19 11:17:49 UTC 2020
#49356: Add hook into get_user_locale()
--------------------------------------+------------------------------
Reporter: juliobox | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: trivial | Resolution:
Keywords: needs-patch dev-feedback | Focuses:
--------------------------------------+------------------------------
Comment (by vanaf1979):
My patch ads a 'user_locale' filter to the get_user_locale function.
I do have two question though:
- get_user_local can return the users locale or the sites local. Should
the filter have a second "is_user_local" paramater?
- if there is no user locale the get_user_locale function returns the
value of get_locale which already has a 'locale' filter. This makes the
value be filtered twice. I'm not sure if this is desired?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49356#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list