WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#10042 closed defect (bug) (fixed)

New wp_list_authors 'style=' fails to return author list

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

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 10 years ago.
10042.patch (451 bytes) - added by iytk 10 years ago.

Download all attachments as: .zip

Change History (7)

@michaelh
10 years ago

#1 @michaelh
10 years ago

  • Keywords has-patch needs-testing added

#2 @Denis-de-Bernardy
10 years ago

  • Milestone changed from 2.8 to 2.8.1

#3 @michaelh
10 years ago

Also see #10328 for another suggested fix.

@iytk
10 years ago

#4 @ryan
10 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
10 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.