Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#2668 closed defect (bug) (fixed)

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

Reported by: mikelittle's profile MikeLittle Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0.2
Component: Administration Keywords:
Focuses: 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 (1)

classes.php.diff (385 bytes) - added by MikeLittle 19 years ago.
Fix for ticket 2668

Download all attachments as: .zip

Change History (2)

@MikeLittle
19 years ago

Fix for ticket 2668

#1 @ryan
19 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.