[wp-trac] [WordPress Trac] #18551: get_userdata returning full user object, not data like it used to

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 4 08:57:42 UTC 2011


#18551: get_userdata returning full user object, not data  like it used to
-------------------------------+----------------------
 Reporter:  anmari             |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  3.3
Component:  Users              |     Version:  3.3
 Severity:  major              |  Resolution:  invalid
 Keywords:  reporter-feedback  |
-------------------------------+----------------------
Changes (by anmari):

 * status:  reopened => closed
 * resolution:   => invalid


Comment:

 Sorry  for re-open - just wanted to make the note for others who end up
 here that it appears one can then NOT 'iterate' (eg: with foreach) through
 the user data like one used to.

 get_userdata will not actually fetch all the meta data - it will only
 fetch by magic method when specifically called.

 So if one wanted to fetch ALL metadata whatever was there for whatever
 reason, one must find another means. Looks like get_user_metavalues($ids).

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


More information about the wp-trac mailing list