[wp-trac] [WordPress Trac] #11037: orderby does not support ordering by comment_count

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 29 22:42:47 UTC 2009


#11037: orderby does not support ordering by comment_count
-------------------------+--------------------------------------------------
 Reporter:  markjaquith  |        Owner:  markjaquith
     Type:  enhancement  |       Status:  reopened   
 Priority:  normal       |    Milestone:  2.9        
Component:  Query        |      Version:  2.9        
 Severity:  normal       |   Resolution:             
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by nickohrn):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 Your commit failed to include a break, so ordering by comment_count would
 cause an order on a non existent field such as
 wp_posts.wp_posts.comment_count.  Please find a patch attached.

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


More information about the wp-trac mailing list