[wp-hackers] Semantic changes to list_pages and list_categories in
2.4-bleeding
James R Whitehead
james at interconnectit.com
Wed Feb 13 12:49:40 GMT 2008
Hi,
I'm wondering why the html generated by wp_list_pages and
wp_list_categories has changed in the current 2.4-bleeding. I know
things in this are not set in stone so I'm hoping it's not a permanent
change as it makes coding CSS menus that work with 2.3 and 2.4 very
difficult especially as child item are no longer in a single container.
The new structure also makes less sense semantically as each child is
now a separate UL.
Changed from:
<ul>
<li>
Text
<ul>
<li>text</li>
<li>text</li>
<li>text</li>
<ul>
</li>
</ul>
To:
<ul>
<li>
Text
<ul>
<li>text</li>
<ul>
<ul>
<li>text</li>
<ul>
<ul>
<li>text</li>
<ul>
</li>
</ul>
Thanks,
--
James R Whitehead
email: James at interconnectit.com
URL: http://www.interconnectit.com
Phone: +44 (0)151 709 7977
More information about the wp-hackers
mailing list