[wp-trac] [WordPress Trac] #13249: Menu item parent property

WordPress Trac wp-trac at lists.automattic.com
Tue May 4 10:56:59 UTC 2010


#13249: Menu item parent property
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:  filosofo 
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Menus         |     Version:  3.0      
 Severity:  major         |    Keywords:  has-patch
--------------------------+-------------------------------------------------
Description changed by filosofo:

Old description:

> Currently, the hierarchy of menu items works haphazardly: a menu item's
> parent is determined by its post_parent property, which is the database
> ID of the item's original object.
>
> This introduces a number of bugs because menu item original objects can
> be either taxonomy objects or post objects, each group of which has its
> own independent set of database IDs.  So try to order taxonomy menu items
> and post type menu items, and you get inconsistent (sometimes non-
> functional) results.
>
> Patch introduces the menu item property menu_parent, which determines the
> hierarchical placement of the given menu item.  menu_parent refers to the
> menu item DB ID of its parent, if any, which is internally consistent
> because all menu item objects are post objects.

New description:

 Currently, the hierarchy of menu items works haphazardly: a menu item's
 parent is determined by its post_parent property, which is the database ID
 of the item's original object.

 This introduces a number of bugs because menu item original objects can be
 either taxonomy objects or post objects, each group of which has its own
 independent set of database IDs.  So try to order a mixture of taxonomy
 menu items and post type menu items, and you get inconsistent (sometimes
 non-functional) results.

 Patch introduces the menu item property menu_parent, which determines the
 hierarchical placement of the given menu item.  menu_parent refers to the
 menu item DB ID of its parent, if any, which is internally consistent
 because all menu item objects are post objects.

--

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


More information about the wp-trac mailing list