[wp-trac] [WordPress Trac] #3080: wp_list_pages() is not closing the </li> in some circumstances

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 30 03:28:41 GMT 2006


#3080: wp_list_pages() is not closing the </li> in some circumstances
--------------------------+-------------------------------------------------
 Reporter:  JeremyVisser  |       Owner:  anonymous
     Type:  defect        |      Status:  new      
 Priority:  normal        |   Milestone:  2.1      
Component:  Template      |     Version:  2.1      
 Severity:  normal        |    Keywords:  bughunt  
--------------------------+-------------------------------------------------
 When {{{wp_list_pages()}}} is called limiting the depth of pages to be
 listed, it seems to be forgetting the closing </li> sometimes and
 invalidating the markup.

 The arguments passed to it is
 '{{{sort_column=menu_order&depth=1&title_li=}}}' and if I remove the
 {{{depth=1}}} the markup will validate but will show all the pages, which
 is not what I want.

 I can reproduce the error in the K2 theme, which uses the depth=1
 argument.

 I think the error is occurring in the Walker_Page class and could be
 related to #2668 but I don't have the PHP skills to be sure.

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


More information about the wp-trac mailing list