#3961 closed defect (bug) (fixed)
wp_get_archives('type=postbypost') missing ORDER BY
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.2 |
| Component: | Template | Version: | 2.2 |
| Severity: | major | Keywords: | commit |
| Cc: |
Description
wp-includes/general-template.php function wp_get_archives() line 417/418 :
('alpha' == $type) ? $orderby = "post_title ASC " : $orderby = "post_date DESC ";
$arcresults = $wpdb->get_results("SELECT * FROM $wpdb->posts $join $where $orderby $limit");
Should be:
('alpha' == $type) ? $orderby = "post_title ASC " : $orderby = "post_date DESC ";
$arcresults = $wpdb->get_results("SELECT * FROM $wpdb->posts $join $where ORDER BY $orderby $limit");
Attachments (1)
Change History (6)
foolswisdom — 6 years ago
- Resolution set to duplicate
- Status changed from new to closed
Notes that this is a dupe of #3951
Closing as dupe of earlier ticket which also has-patch
comment:3
foolswisdom — 6 years ago
- Milestone 2.2 deleted
- Resolution changed from duplicate to fixed
Note: See
TracTickets for help on using
tickets.

+1
/me hides in shame for breaking it with his last patch