WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #13378


Ignore:
Timestamp:
05/13/10 19:50:49 (5 years ago)
Author:
ryan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13378 – Description

    initial v1  
    1 There is currently no way to associate a particular menu with a given call to wp_nav_menu() in a theme.  Themes cannot call wp_nav_menu() multiple times and have sane assignment of menus without hard coding particular menu names/ids/slugs (which is not portable across themes). 
     1There is currently no way to associate a particular menu with a given call to wp_nav_menu() in a theme.  Themes cannot call wp_nav_menu() multiple times and have sane assignment of menus without hard coding particular menu names/ids/slugs (which is not portable across themes and languages). 
    22 
    33This can be solved by allowing themes to register how many menus they use and give those menus a handle.  A dropdown in the menus admin would show these handles and allow associating a menu with a given handle.  Upon switching themes this association would be cleared, although a set of standard slot names could be used and preserved when switching themes (Main, Secondary, ...).  Registering "slots" decouples assignment from menu naming, allowing users to name their menus as they see fit in any language instead of being tied to hard-coded strings coming from the theme.