[wp-trac] [WordPress Trac] #31878: get_users() on multisite returns empty user roles when other blog_id provided

WordPress Trac noreply at wordpress.org
Fri Apr 3 14:13:20 UTC 2015


#31878: get_users() on multisite returns empty user roles when other blog_id
provided
--------------------------+---------------------------
 Reporter:  Kubitomakita  |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.2
Component:  Users         |     Version:  3.5
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:  multisite
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"32001"]:
 {{{
 #!CommitTicketReference repository="" revision="32001"
 `WP_User_Query`: When querying users with 'fields=all', ensure that caps
 and roles are filled for the current site.

 See [15566] for a parallel fix for 'fields=all_with_meta'.

 Fixes #31878.
 }}}

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


More information about the wp-trac mailing list