[wp-trac] [WordPress Trac] #26544: wp_list_authors number arg and exclude admin

WordPress Trac noreply at wordpress.org
Wed Dec 11 20:12:06 UTC 2013


#26544: wp_list_authors number arg and exclude admin
--------------------------+-----------------------------
 Reporter:  MikeHansenMe  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 When you use the exclude_admin arg it only excludes the user name 'admin'
 not administrative accounts. This is on by default. When you have 3 users
 'admin', 'user1', and 'user2' then set the arg number to 2. I would assume
 it would return user1 and user2. However, it returns user1 because the
 first user was admin and it excluded it. I think we should check both
 number and exclude admin before looping through and building the return.

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


More information about the wp-trac mailing list