[wp-trac] [WordPress Trac] #10328: No wp_list_authors output
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 2 01:47:51 UTC 2009
#10328: No wp_list_authors output
--------------------------+-------------------------------------------------
Reporter: takaitra | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Template | Version: 2.8
Severity: normal | Keywords: wp_list_authors
--------------------------+-------------------------------------------------
The template function wp_list_authors gives no output for a specific
combination of options.
In order to reproduce this error, call
wp_list_authors(hide_empty=1&style=none)
Expected output: A comma separated list of authors who have posted to
WordPress.
Actual output: nothing
A fix is to modify line 330 of wp-includes/author-template.php.
Currently: else if ( ! $hide_empty )
Should be: else if ( !($posts == 0 && $hide_empty) )
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10328>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list