[wp-trac] [WordPress Trac] #22959: Show all roles in user list table

WordPress Trac noreply at wordpress.org
Sun Dec 16 18:50:20 UTC 2012


#22959: Show all roles in user list table
-----------------------------+------------------
 Reporter:  scribu           |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  3.6
Component:  Role/Capability  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------
Changes (by deltafactory):

 * cc: jeff@… (added)


Comment:

 Where should filtering be added, and to what end? If we're expected to
 find existing elements in the array, perhaps it should be filtered pre-
 translation. If not, this at least gives an opportunity to add elements.

 Before: `return implode( ', ', $role_str );`

 After: `return implode( ', ', apply_filters( 'wp_user_list_get_role_str',
 $role_str, $user_object ) );`

 If the intention was to modify the column's output after the implode(),
 another filter would be necessary.

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


More information about the wp-trac mailing list