wp_list_pages() is not closing the </li> in some circumstances
|Reported by:||JeremyVisser||Owned by:||ryan|
|Priority:||highest omg bbq||Milestone:||2.1|
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.
Change History (10)
comment:7 markjaquith — 6 years ago
- Priority changed from high to highest omg bbq
- Severity changed from normal to critical