Ticket #2668 (closed defect (bug): fixed)

Opened 3 years ago

Last modified 3 years ago

wp_list_cats is not closing the </li> and so doesn't validate as XHTML

Reported by: MikeLittle Assigned to: anonymous
Priority: normal Milestone:
Component: Administration Version: 2.0.2
Severity: normal Keywords:
Cc:

Description

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.

Attachments

classes.php.diff (385 bytes) - added by MikeLittle on 04/18/06 22:03:38.
Fix for ticket 2668

Change History

04/18/06 22:03:38 changed by MikeLittle

  • attachment classes.php.diff added.

Fix for ticket 2668

04/19/06 02:33:49 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [3715]) Don't forget to pass args. Props Mike Little. fixes #2668