[wp-trac] [WordPress Trac] #48459: Unable to list users with 'No role for this site'

WordPress Trac noreply at wordpress.org
Wed Oct 30 09:26:54 UTC 2019


#48459: Unable to list users with 'No role for this site'
--------------------------+------------------------------
 Reporter:  ahall41       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  5.2.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  administration
--------------------------+------------------------------

Comment (by ahall41):

 I've been doing a bit of digging. In wp_get_users_with_no_role, the call
 to wp_roles()->get_names() is including "ddatower" in the list. However
 the actual capability in the user metadata is "dda tower", as a result the
 not regexp
 'administrator|editor|author|contributor|subscriber|bellrepairfund|ddatower'
 is failing to exclude "dda tower".

 I should also point out that this list does **not** include "ddaauthor" or
 "dda author".

 [Why not just look for an empty capability here?]

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


More information about the wp-trac mailing list