Make WordPress Core

Opened 16 years ago

Closed 15 years ago

#10042 closed defect (bug) (fixed)

New wp_list_authors 'style=' fails to return author list

Reported by: michaelh's profile michaelh Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Template Keywords: has-patch needs-testing early
Focuses: Cc:

Description

At Revision 11521, the new 'style' argument causes wp_list_authors to return nothing when used like this:

<?php wp_list_authors('style=&exclude_admin=0'); ?>

When use like this, a list is returned:

<?php wp_list_authors('style=&hide_empty=0&exclude_admin=0'); ?>

Tested with two users, one of them admin, each with one post.

Report by butche via http://wordpress.org/support/topic/276491

Attachments (2)

10042.diff (1.6 KB) - added by michaelh 16 years ago.
10042.patch (451 bytes) - added by iytk 15 years ago.

Download all attachments as: .zip

Change History (7)

@michaelh
16 years ago

#1 @michaelh
16 years ago

  • Keywords has-patch needs-testing added

#2 @Denis-de-Bernardy
16 years ago

  • Milestone changed from 2.8 to 2.8.1

#3 @michaelh
16 years ago

Also see #10328 for another suggested fix.

@iytk
15 years ago

#4 @ryan
15 years ago

  • Keywords early added
  • Milestone changed from 2.9 to 3.0

This slipped through the cracks for 2.9. Marking for early commit to 3.0.

#5 @nacin
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [13989]) Correct logic in wp_list_authors() for combinations of hide_empty and style args. fixes #10042

Note: See TracTickets for help on using tickets.