[wp-trac] [WordPress Trac] #30480: wp_get_archives() should support a secondary ORDER BY column

WordPress Trac noreply at wordpress.org
Fri Feb 13 16:59:53 UTC 2015


#30480: wp_get_archives() should support a secondary ORDER BY column
---------------------------------+---------------------
 Reporter:  boonebgorges         |       Owner:  boone
     Type:  defect (bug)         |      Status:  closed
 Priority:  normal               |   Milestone:  4.2
Component:  General              |     Version:
 Severity:  normal               |  Resolution:  fixed
 Keywords:  4.2-early has-patch  |     Focuses:
---------------------------------+---------------------
Changes (by boonebgorges):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31452"]:
 {{{
 #!CommitTicketReference repository="" revision="31452"
 Provide a secondary sort order for `wp_get_archives()` when
 `type=postbypost`.

 Sorting by post_date alone can cause indeterminacy problems on different
 versions of MySQL when post_date ties need to be broken. Using `ID` as a
 secondary sort ensures that the order is always determinate.

 Props herbmillerjr for an initial patch.
 Fixes #30480.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30480#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list