WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 7 months ago

#23498 new defect (bug)

wp_list_authors ignores 'exclude_admin' arg when admin account has a display_name other then 'admin' — at Initial Version

Reported by: raphaabreu Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.1
Component: Users Keywords: has-patch
Focuses: Cc:

Description

Line 293 of author-template.php should be changed from:

if ( $exclude_admin && 'admin' == $author->display_name )

to:

if ( $exclude_admin && 'admin' == $author->user_login )

Thanks.

Change History (0)

Note: See TracTickets for help on using tickets.