[wp-hackers] add_menu_page in 2.7RC1
elflop at googlemail.com
Tue Dec 2 11:06:04 GMT 2008
Currently I use the following, which seems to work well, to add a top
level menu item:
add_menu_page(__('eShop','eshop'), __('eShop','eshop'), $eshoplevel,
However the link produced is like this:
Which works with no problem but this then invalidates the html:
<li class="wp-has-submenu wp-has-current-submenu wp-menu-open menu-top
toplevel_page_eshop/eshop menu-top-first menu-top-last"
alt="" /><div class="wp-menu-toggle"><br /></div><a
wp-has-current-submenu wp-menu-open menu-top toplevel_page_eshop/eshop
menu-top-first menu-top-last" tabindex="1">eShop</a>
the offending part being:
the slash shouldn't be there.
So either I'm doing something wrong, or the slash should be removed
Additionally I notice there is no highlighting of links when tabbing
through the page.
my mind is on a permanent tangent
More information about the wp-hackers