[wp-trac] [WordPress Trac] #10329: sort_by and count_limit options for wp_list_authors

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 1 17:50:19 UTC 2010


#10329: sort_by and count_limit options for wp_list_authors
-----------------------------+----------------------------------------------
 Reporter:  takaitra         |       Owner:  westi         
     Type:  feature request  |      Status:  reviewing     
 Priority:  normal           |   Milestone:  Future Release
Component:  Template         |     Version:                
 Severity:  normal           |    Keywords:  has-patch     
-----------------------------+----------------------------------------------

Comment(by Denis-de-Bernardy):

 this:

 {{{
 if ( $orderby == 'name' ) {
   $author_sort = "ORDER BY author_name $order";
 } else {
   $author_sort = "ORDER BY author_count $order";
 }
 }}}

 should be something like:

 {{{
 if ( $order == 'count' ) {
   $author_sort = "ORDER BY author_count $order";
 } else {
   $author_sort = "ORDER BY author_name $order";
 }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10329#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list