[wp-trac] [WordPress Trac] #17025: wp_list_authors() is not filterable

WordPress Trac noreply at wordpress.org
Sat Jun 11 13:18:03 UTC 2022

#17025: wp_list_authors() is not filterable
 Reporter:  kevinB                               |       Owner:  audrasjb
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.1
Component:  Query                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  early needs-dev-note 2nd-opinion     |     Focuses:
  has-patch                                      |

Comment (by SergeyBiryukov):

 I have split this into two patches for easier review, I think they should
 be committed separately:

 * [attachment:"17025.12.wp_list_authors_args.diff"] introduces the
 `wp_list_authors_args` and `wp_list_users_args` filters, which should
 address the initial request here. Note that `wp_list_users()` was only
 added recently in [52064] / #15145, which is why it has not been mentioned
 in this ticket before.
 * [attachment:"17025.12.display_name.diff"] uses a translatable string in
 every instance where we display a concatenated first name and last name,
 instead of adding a filter in just one of these instances. That allows
 locales to switch the order, should they prefer to do so.

Ticket URL: <https://core.trac.wordpress.org/ticket/17025#comment:62>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list