Opened 5 years ago
Closed 5 years ago
#5652 closed enhancement (fixed)
Add extra parameters wp_list_bookmarks and wp_list_pages
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7 |
| Component: | Template | Version: | 2.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
Add parameters to inside the hyperlink tags (named innerbefore and innerafter).
Attachments (7)
Change History (22)
Created the Codex info for this patch if it gets commited.
- Summary changed from Add extra parameters wp_list_bookmarks to Add extra parameters wp_list_bookmarks and wp_list_pages
I know it hasn't been decided on what the terms will be but in this patch for wp_list_pages, i have used innerbefore and innerafter.
How about something like link_before and link_after? Also, make sure to set them to empty string in the defaults array.
New Patch added:
- $innerbefore is now $link_before.
- $innerafter is now $link_after.
- Defaults added as
- Inline documentation changed in bookmark-template.php (post-template.php does not have documentation.
- Component changed from General to Template
- Keywords template-added-options added
5652-link_-revision.diff has the final version of my recomended additions. I have tested it on a like site for the past several days and there hoes not seem to be an issue.
comment:10
thee17 — 5 years ago
- Milestone changed from 2.5 to 2.6
I guess this is not going to happen in 2.5
comment:11
thee17 — 5 years ago
- Keywords dev-feedback added; template-added-options removed
comment:12
thee17 — 5 years ago
- Milestone changed from 2.6 to 2.7
comment:13
ryan — 5 years ago
PHP Parse error: syntax error, unexpected T_ELSE in /Applications/MAMP/htdocs/trunk/wp-includes/post-template.php on line 455
Needs fix and testing.
comment:14
thee17 — 5 years ago
- Keywords dev-feedback removed
comment:15
ryan — 5 years ago
- Resolution set to fixed
- Status changed from new to closed

Adds innerbefore and innerafter