[wp-trac] [WordPress Trac] #60071: wp_list_authors with exclude_admin=true does not exclude administrators

WordPress Trac noreply at wordpress.org
Thu Dec 14 17:00:54 UTC 2023


#60071: wp_list_authors with exclude_admin=true does not exclude administrators
-----------------------------------+------------------------------
 Reporter:  juliobox               |       Owner:  (none)
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Users                  |     Version:  1.2
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:  has-patch => has-patch 2nd-opinion
 * version:  trunk => 1.2
 * type:  defect (bug) => enhancement


Comment:

 Related/duplicate: #9165 (see also [979] and [2444])

 While sites ideally would not have a user named 'admin' anymore, excluding
 only the one user (if found) is the
 [https://developer.wordpress.org/reference/functions/wp_list_authors/
 documented use] for the `$exclude_admin` parameter.

 The default value is true, so excluding based on role or capability could
 remove links unexpectedly for //all// administrators' post archives.

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


More information about the wp-trac mailing list