[wp-trac] [WordPress Trac] #38234: wp_get_users_with_no_role() generates query based on role display names not role name

WordPress Trac noreply at wordpress.org
Fri Oct 14 12:04:51 UTC 2016


#38234: wp_get_users_with_no_role() generates query based on role display names not
role name
--------------------------------------+--------------------------
 Reporter:  szaqal21                  |       Owner:  johnbillion
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.7
Component:  Users                     |     Version:  4.4
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------
Changes (by johnbillion):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38787"]:
 {{{
 #!CommitTicketReference repository="" revision="38787"
 Users: Use the role name instead of the role display name when fetching
 the list of users with no role. This avoids false positives when dealing
 with user roles that, for example, contain spaces in the display name.

 Props procodewp, choongsavvii
 Fixes #38234
 }}}

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


More information about the wp-trac mailing list