[wp-trac] [WordPress Trac] #30480: wp_get_archives() should support a secondary ORDER BY column
WordPress Trac
noreply at wordpress.org
Mon Nov 24 15:01:34 UTC 2014
#30480: wp_get_archives() should support a secondary ORDER BY column
-------------------------+-------------------------------------------------
Reporter: | Owner:
boonebgorges | Status: new
Type: defect | Milestone: Future Release
(bug) | Version:
Priority: normal | Keywords: needs-patch needs-unit-tests good-
Component: General | first-bug
Severity: normal |
Focuses: |
-------------------------+-------------------------------------------------
See #40378 for a similar issue in `WP_Comment_Query`.
`wp_get_archives()` tests are periodically failing on older versions of
MySQL due to indeterminate ordering of results when all posts have the
same post_date_gmt. See https://travis-
ci.org/pento/develop.wordpress/jobs/41917241. The ORDER BY clause built by
`wp_get_archives()` should look something like: `ORDER BY post_date
$order, ID $order`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30480>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list