Opened 12 years ago
Closed 12 years ago
#26128 closed defect (bug) (fixed)
Default orderby for get_posts() is, date.
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.8 | Priority: | normal |
Severity: | trivial | Version: | 2.6 |
Component: | Query | Keywords: | has-patch |
Focuses: | Cc: |
Description
Default orderby for get_posts() is, date, not post_date
WP_Query::get_posts allows array('name', 'author', 'date', 'title', 'modified', 'menu_order', 'parent', 'ID', 'rand', 'comment_count').
http://core.trac.wordpress.org/browser/tags/3.7.1/src/wp-includes/query.php#L2575
WP_Query::get_posts adds the prefix "post_",
http://core.trac.wordpress.org/browser/tags/3.7.1/src/wp-includes/query.php#L2615
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Missed in [7880].