[wp-trac] [WordPress Trac] #2668: wp_list_cats is not closing the
</li> and so doesn't validate as XHTML
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 18 22:01:13 GMT 2006
#2668: wp_list_cats is not closing the </li> and so doesn't validate as XHTML
----------------------------+-----------------------------------------------
Id: 2668 | Status: new
Component: Administration | Modified: Tue Apr 18 22:01:12 2006
Severity: normal | Milestone:
Priority: normal | Version: 2.0.2
Owner: anonymous | Reporter: MikeLittle
----------------------------+-----------------------------------------------
As reported by Ajay D'Souza on the testers mailing list. The newly
restructured wp_list_cats() which calls (eventually) wp_list_categories()
does not correctly close the list item (li) elements.
The fix is to add a fourth argument $args to the function end_el() in the
class Walker_Category.
The function references $args to determine whether to add the closing tag.
Patch to follow.
--
Ticket URL: <http://trac.wordpress.org/ticket/2668>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list