[wp-trac] [WordPress Trac] #49399: wp_get_users_with_no_role() does not handle user roles which contain numbers

WordPress Trac noreply at wordpress.org
Thu Feb 13 06:02:52 UTC 2020


#49399: wp_get_users_with_no_role() does not handle user roles which contain
numbers
------------------------------------------+-----------------------------
 Reporter:  chillbram                     |       Owner:  (none)
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Future Release
Component:  Users                         |     Version:  4.4
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+-----------------------------
Changes (by isabel_brison):

 * version:  5.3.2 => 4.4
 * milestone:  Awaiting Review => Future Release


Comment:

 Best way forward here should be to change the regex to accept numbers
 provided they're not preceded by a colon, and to ensure that users are not
 allowed to add special characters in role names.

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


More information about the wp-trac mailing list