Make get_available_languages() filtrable
|Reported by:||yoavf||Owned by:||pento|
Description (last modified by yoavf)
When a user object is saved using edit_user() (i.e, after editing the user settings) WP will discard (and replace with en_US) any submitted value for the new user locale meta if it is not part of the array returned by get_available_languages()
get_available_languages() works by scanning the language folder for .mo files. In some use cases, language files might not exist for a locale, named in a different way, or maybe stored elsewhere. get_available_languages() results should be filtrable.
FWIW: we need this filter (or an alternate solution) to merge the new user locale setting and locale switching to WP.com.
Change History (11)
- Milestone changed from Awaiting Review to 4.7
- Owner set to pento
- Status changed from new to assigned
- Resolution set to fixed
- Status changed from assigned to closed