#3664 closed defect (bug) (fixed)
wp_list_bookmarks doesn't behave as advertised in the documentation, generates invalid XHTML
| Reported by: | m0n5t3r | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1.1 |
| Component: | Administration | Version: | 2.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
According to the codex documentation, when an empty title_li parameter is passed to wp_list_bookmarks, the function should dump the bookmarks as a series of <li> tags not wrapped in <ul></ul>, which is a reasonable behaviour; however, this isn't the case in reality;
the attached patch solves the issue, and also addresses another "feature": when outputting a single category, the <li> tag that surrounds it has the id "linkuncat"; when several link categories are dumped separately, this leads to invalid HTML (several tags with the same id)
Attachments (1)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
patch to solve #3664