[wp-trac] [WordPress Trac] #36196: Users without a role are not being displayed

WordPress Trac noreply at wordpress.org
Mon Feb 13 11:46:41 UTC 2017


#36196: Users without a role are not being displayed
----------------------------------------+-----------------------------
 Reporter:  tobi823                     |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Users                       |     Version:  4.4
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  multisite
----------------------------------------+-----------------------------

Comment (by warrenreeves):

 I was able to get users with no role to show in the User list in this case
 by changing core file "wp-admin/includes/class-wp-users-list-table.php"
 line 360 from:
 {{{#!php
 if ( is_multisite() && empty( $user_object->allcaps ) )
 }}}

 to:


 {{{#!php
 if ( is_multisite() && empty( $user_object->cap_key ) )
 }}}

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


More information about the wp-trac mailing list