Opened 6 months ago
Last modified 5 weeks ago
#22959 new enhancement
Show all roles in user list table
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Role/Capability | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | jeff@…, phill@…, justin@…, pippin@… |
Description (last modified by scribu)
Attachments (2)
Change History (12)
comment:3
deltafactory
— 6 months ago
- Cc jeff@… added
comment:4
phill_brown
— 6 months ago
- Cc phill@… added
comment:5
greenshady
— 5 months ago
- Cc justin@… added
comment:6
MikeHansenMe
— 5 weeks ago
- Keywords needs-refresh added
JustinSainton
— 5 weeks ago
comment:7
JustinSainton
— 5 weeks ago
- Keywords needs-refresh removed
comment:10
deltafactory
— 5 weeks ago
I know this ticket is now for a future release. I'm still interested in the inclusion of filtering of the roles, pre-translation. Am I the only one, or should I submit a patch to that effect?
Note: See
TracTickets for help on using
tickets.
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.