[wp-trac] [WordPress Trac] #23498: wp_list_authors ignores 'exclude_admin' arg when admin account has a display_name other then 'admin'
WordPress Trac
noreply at wordpress.org
Mon Feb 18 11:55:13 UTC 2013
#23498: wp_list_authors ignores 'exclude_admin' arg when admin account has a
display_name other then 'admin'
--------------------------+------------------------------
Reporter: raphaabreu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 3.5.1
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Changes (by knutsp):
* cc: knut@… (added)
Comment:
'admin' should be avoided as user_login anyway. On a single site there is
usually a site owner, identified by the user who has the same email as the
one who installed it and may be still be the receiver of admin emails for
the site.
{{{
if ( $exclude_admin && get_option('admin_email') == $author->user_email )
}}}
This will exclude one, or sometimes no users. Or just deprecate the whole
$exclude_admin thing in favor of something more modern in terms of today's
WordPress roles and capabilities.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23498#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list