[wp-trac] [WordPress Trac] #5483: menu-header.php enhancements
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 18 07:36:31 GMT 2007
#5483: menu-header.php enhancements
----------------------------+-----------------------------------------------
Reporter: huwr | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3.2
Component: Administration | Version:
Severity: normal | Keywords: has-patch
----------------------------+-----------------------------------------------
this patch introduces the following to menu-header.php:
1. slightly cleaned up code, removed some redundancy
2. gave class=current to li container. current version only applies this
class to link, which renders some css techniques impossible. class was
left in link as well for backwards compat, but is otherwise unnecessary as
the link can be targeted with "li.current a {}".
3. added action admin_menu_li with argument to run after each li. this
will allow CMS and theme authors to place nested ul trees after each menu
item, which is necessary and semantically proper for things like drop-down
and instantly visible submenus.
the next step may be to push the submenu creation into a reusable
function.
--
Ticket URL: <http://trac.wordpress.org/ticket/5483>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list