[wp-trac] [WordPress Trac] #25765: Directory of users, listing with the role

WordPress Trac noreply at wordpress.org
Wed Oct 30 01:18:21 UTC 2013


#25765: Directory of users, listing with the role
-------------------------+------------------------------
 Reporter:  valeriosza   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Users        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  close        |
-------------------------+------------------------------

Comment (by SergeyBiryukov):

 The patch doesn't work as expected.

 It makes the Role column sortable, and `orderby=role` is then added to the
 URL, but `WP_User_Query` cannot order by role, so it falls back to sorting
 by `user_login`: [source:tags/3.7.1/src/wp-includes/user.php#L421].

 This can probably be implemented in a plugin though.
 `manage_users_sortable_columns` and `pre_user_query` filters might be
 helpful.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25765#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list