[wp-trac] [WordPress Trac] #38578: `locale` is not a per-site user-option, but rather a global user attribute

WordPress Trac noreply at wordpress.org
Sun Oct 30 22:15:02 UTC 2016


#38578: `locale` is not a per-site user-option, but rather a global user attribute
-----------------------------+--------------------
 Reporter:  johnjamesjacoby  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  4.7
Component:  I18N             |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+--------------------

Comment (by johnjamesjacoby):

 Also, `wp_insert_user()` sets the `locale` user meta using
 `update_user_meta()`. It's never saved as a per-site user option, so I
 don't think `get_user_option()` is the correct approach in this instance.

 The bug here, to be clear, is if there was somehow a `wp_2_locale` key in
 `wp_usermeta` (maybe from a plugin?) it would be what appears as selected
 in the dropdown... but when the user is updated, it would update the
 `locale` key, which is what everything else uses.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38578#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list