[wp-trac] [WordPress Trac] #27171: Can't set order argument for wp_get_archives

WordPress Trac noreply at wordpress.org
Fri Feb 21 01:54:15 UTC 2014


#27171: Can't set order argument for wp_get_archives
--------------------------+-----------------------------
 Reporter:  tcloninger    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:  3.8.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 It's listed as available in the codex.
 http://codex.wordpress.org/Function_Reference/wp_get_archives
 ... but under `function wp_get_archives()` /wp-includes/general-
 template.php:877 that default is not listed.

 Looks like it needs to be added to the end of the $defaults array (line
 884).
 Then $order then needs to be added after "post_date" on lines 924, 946,
 967, 990 and 1019.

 This does appear to have been submitted, but since it was 18 months ago,
 wasn't sure if I should resubmit.
 https://core.trac.wordpress.org/changeset/21610

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27171>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list