WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 4 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:

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

Download all attachments as: .zip

Change History (7)

michaelh5 years ago

comment:1 michaelh5 years ago

  • Keywords has-patch needs-testing added

comment:2 Denis-de-Bernardy5 years ago

  • Milestone changed from 2.8 to 2.8.1

comment:3 michaelh5 years ago

Also see #10328 for another suggested fix.

iytk4 years ago

comment:4 ryan4 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.

comment:5 nacin4 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.