[wp-trac] [WordPress Trac] #11817: Better Site Menu Management

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 18 01:53:24 UTC 2010


#11817: Better Site Menu Management
-------------------------+--------------------------------------------------
 Reporter:  scribu       |        Owner:          
     Type:  enhancement  |       Status:  reopened
 Priority:  normal       |    Milestone:  3.0     
Component:  General      |      Version:          
 Severity:  normal       |   Resolution:          
 Keywords:  has-patch    |  
-------------------------+--------------------------------------------------

Comment(by ceenz):

 WOW I AM HORRIFIED AT HOW MENUS HAS EVOLVED IN WP.



 I have just been digging into the code for menu creating and management
 for the last 4 hours and cannot believe how convoluted, complicated and
 WAY over the top it all is. I cannot understand why simple menus require
 to be linked in with taxonomy, taxonomy relationships etc. I then looked
 at the number of data options stored in the wp_options DB totally
 ridiculous, there's something like 15 different entries just for
 nav_menus.



 THE WHOLE MENU CREATION / ADMIN coding needs to be really looked at again
 with some type of DIRECTION and PATH mapped out. It is really a MESS, with
 just code piled up on top of each other.


 There needs only to be one DB entry for nav_menus and one for
 nav_menu_items in WP_options thats it. None of this taxonomy linking BS,
 none of the over the top nav_menu options currently in place.

 Each instance of nav_menu should have an id, name, array for items and
 array for options.
 Each nav_menu_item should have an id, name, link, type, and array for
 options.

 That is seriously all that is required.

 All the BS surrounding custom post types different taxonomy (eg tag,
 categories) can be handled through an extend-able nav_menu class based on
 the nav_menu_item type and store the unique options for the type in the
 nav_menu_item options array.




 I am really sorry but the whole situation is making me really angry.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11817#comment:331>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list