#3664 closed defect (bug) (fixed)
wp_list_bookmarks doesn't behave as advertised in the documentation, generates invalid XHTML
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.1.1 | Priority: | normal |
Severity: | normal | Version: | 2.1 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
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.
patch to solve #3664