[wp-trac] [WordPress Trac] #24255: WP_User::__set doesn't persist custom fields as it claims

WordPress Trac noreply at wordpress.org
Mon May 6 07:38:00 UTC 2013


#24255: WP_User::__set doesn't persist custom fields as it claims
--------------------------+------------------------------
 Reporter:  quickshiftin  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  3.5.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by quickshiftin):

 Hmm, good to know.

 It does feel a bit lop-sided reading from custom fields, but not storing
 to them.  To me the simple `update_user_meta` feels appropriate, but a
 batch write would be nice.  It would have to read any fields that were set
 but not yet read, but perhaps the read could also be batched.

 Another neat idea for it would be to call it in the destructor so client
 code could just assume the write will be done automatically.

 Thanks for looking at it.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24255#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list