[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 09:38:00 UTC 2013


#23498: wp_list_authors ignores 'exclude_admin' arg when admin account has a
display_name other then 'admin'
-----------------------------+--------------------------
 Reporter:  raphaabreu       |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Users
  Version:  3.5.1            |   Severity:  normal
 Keywords:  has-patch        |
-----------------------------+--------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23498>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list