[wp-testers] 3.01 wp_nav_menu broke my theme

Bruce Wampler brucewampler at gmail.com
Sat Aug 21 06:22:35 UTC 2010


  I just discovered a problem:  the return string from wp_nav_menu in 
3.01 is
not the same as 3.0, and the difference broke my theme. For some reason,
3.01 decided to supply each menu item's id as both an ID to the li and
as a class in the class=''. E.g., menu-item-24 below.

<li id="menu-item-24" class="menu-item menu-item-type-post_type 
menu-item-24"><a href="...about">About</a></li>

Previously, the menu-item-# was only included in the id. This seems like 
a fairly arbitrary
change, and I'm not even sure it is a good idea to use the same name as 
an ID and a class.


-- 
-----------
Bruce Wampler, Ph.D.

Software developer
Creator of first spelling checker for a PC
Creator of Grammatik(tm), first true grammar checker
e-mail: bw at brucewampler.com
blog: brucewampler.wordpress.com



More information about the wp-testers mailing list