[wp-trac] [WordPress Trac] #5844: remove extra <ul> in walker class

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 13 19:46:11 GMT 2008


#5844: remove extra <ul> in walker class
---------------------+------------------------------------------------------
 Reporter:  hailin   |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:  2.6      
Component:  General  |     Version:           
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 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

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


More information about the wp-trac mailing list