Opened 5 years ago
Closed 4 years ago
#5654 closed enhancement (invalid)
Add echo parameter to wp_get_archives
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Template | Version: | 2.5 |
| Severity: | minor | Keywords: | has-patch needs-testing |
| Cc: |
Description
I have modified the wp_get_archives template tag to add the echo parameter, similar to the way wp_get_categories works. This will allow for manipulation of the results. (I made this change to support a tiered archives, with a year at one level and the months below. Allowing me to retrieve the text lets me put the tree together.) Since I had to change it, I thought I would submit it, to see if it would be useful to put it into the core. I've attached a diff - the change was made against the 2.3.2 released version of general-template.php.
Attachments (3)
Change History (12)
danielsummers — 5 years ago
- Owner changed from anonymous to westi
- Status changed from new to assigned
Lose all of the conditionals and just do one conditional at the end that either echoes or returns $output.
danielsummers — 5 years ago
Updated diff - based on 2.5, removed extra conditionals per ryan's suggestion
comment:5
danielsummers — 5 years ago
Let me know if I should commit it through svn, using my login here, or if putting the diff here is sufficient.
Putting the diff here is sufficient.
Only the core devs have commit access to svn. They'll commit it when they look at the patch and deem it good enough.
- Keywords needs-testing added
- Component changed from General to Template
- Milestone 2.9 deleted
- Resolution set to invalid
- Status changed from accepted to closed
seems fixed enough

Diff of echo parameter enhancement