[wp-trac] [WordPress Trac] #26128: Default orderby for get_posts() is, date.

WordPress Trac noreply at wordpress.org
Fri Nov 22 17:38:35 UTC 2013


#26128: Default orderby for get_posts() is, date.
--------------------------+-----------------------------
 Reporter:  ounziw        |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.8
Component:  Query         |     Version:  2.6
 Severity:  trivial       |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"26329"]:
 {{{
 #!CommitTicketReference repository="" revision="26329"
 In `get_posts()`, alter the doc block and default args to make `orderby`
 equal to `date`, not `post_date`.

 Props ounziw.
 Fixes #26128.
 }}}

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


More information about the wp-trac mailing list