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: | in2thats12 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch close |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Add