[wp-trac] [WordPress Trac] #11398: new sort method for query_posts (order by last comment date)

WordPress Trac noreply at wordpress.org
Fri Aug 23 17:10:55 UTC 2013


#11398: new sort method for query_posts (order by last comment date)
------------------------------+-------------------
 Reporter:  erden.ozkan       |       Owner:  ryan
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  3.7
Component:  Query             |     Version:  2.9
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-------------------
Changes (by wonderboymusic):

 * keywords:  has-patch => has-patch commit


Comment:

 .2.diff has Unit Tests - tests revealed the need for:

 `$orderby = "ISNULL($wpdb->comments.comment_date),
 $wpdb->comments.comment_date";`

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


More information about the wp-trac mailing list