[wp-trac] [WordPress Trac] #3664: wp_list_bookmarks doesn't behave as advertised in the documentation, generates invalid XHTML

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 24 21:42:42 GMT 2007


#3664: wp_list_bookmarks doesn't behave as advertised in the documentation,
generates invalid XHTML
----------------------------+-----------------------------------------------
 Reporter:  m0n5t3r         |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.1.1    
Component:  Administration  |     Version:  2.1      
 Severity:  normal          |    Keywords:           
----------------------------+-----------------------------------------------
 According to the
 [http://codex.wordpress.org/Template_Tags/wp_list_bookmarks 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)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3664>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list