Opened 15 years ago
Closed 15 years ago
#16353 closed enhancement (wontfix)
Allow element between li's but not after final element in wp_list_bookmarks
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | General | Keywords: | has-patch close |
| Focuses: | Cc: |
Description
Many times when displaying a list, one wants a separator between the list elements. Using the "after" arg would cause the separator to be displayed after the last element also.
To this end, I added the "li_between" option to the _walk_bookmarks function which places the contents of "li_between" after each list element, but not after the final list element.
Patch attached.
Attachments (1)
Change History (5)
#2
@
15 years ago
- Keywords close added
This opens up a rabbit hole of inconsistency, with so many walkers and li's throughout WP.
This seems like something that should be done through CSS. Keep in mind you have last-child and plenty of other ways of selecting elements.
Note: See
TracTickets for help on using
tickets.
Add