[wp-trac] [WordPress Trac] #27171: Can't set order argument for wp_get_archives
WordPress Trac
noreply at wordpress.org
Fri Feb 21 02:07:43 UTC 2014
#27171: Can't set order argument for wp_get_archives
--------------------------+----------------------
Reporter: tcloninger | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Query | Version: 3.8.1
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by SergeyBiryukov):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Old description:
> 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
New description:
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]
--
Comment:
Replying to [ticket:27171 tcloninger]:
> ... but under `function wp_get_archives()` /wp-includes/general-
template.php:877 that default is not listed.
It is: [source: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).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27171#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list