Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#27171 closed defect (bug) (invalid)

Can't set order argument for wp_get_archives

Reported by: tcloninger's profile tcloninger Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.8.1
Component: Query Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

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. [21610]

Change History (2)

#1 in reply to: ↑ description @SergeyBiryukov
10 years ago

  • Description modified (diff)
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Replying to tcloninger:

... but under function wp_get_archives() /wp-includes/general-template.php:877 that default is not listed.

It is: tags/3.8.1/src/wp-includes/general-template.php#L937.

Judging by line numbers you mention, you seem to be using version 3.4.2.

[21610] was added 18 months ago in 3.5. Please update to the latest release (3.8.1 at the moment).

#2 @tcloninger
10 years ago

Wow. Sure enough. Sorry about that.
It's worse. This old thing is actually on 3.3.2. -.-

Will remedy that immediately.

Thanks for all you guys do!

Note: See TracTickets for help on using tickets.