[wp-trac] [WordPress Trac] #30480: wp_get_archives() should support a secondary ORDER BY column
WordPress Trac
noreply at wordpress.org
Sat Dec 6 19:22:54 UTC 2014
#30480: wp_get_archives() should support a secondary ORDER BY column
-------------------------------------------------+-------------------------
Reporter: boonebgorges | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
Component: General | Release
Severity: normal | Version:
Keywords: needs-unit-tests good-first-bug | Resolution:
has-patch | Focuses:
-------------------------------------------------+-------------------------
Description changed by boonebgorges:
Old description:
> 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`.
New description:
See #30478 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#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list