Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #38788


Ignore:
Timestamp:
11/14/2016 08:11:09 PM (9 years ago)
Author:
yoavf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38788 – Description

    v1 v2  
    1 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()`
     1When 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()`
    22
    33`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.