Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#29252 closed defect (bug) (duplicate)

nav_menu problem with post_parent in menu editor

Reported by: pawel.garbarz Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.9.2
Component: Menus Keywords:
Focuses: Cc:


In menu editor wp-admin/nav-menus.php in tab 'View all' if there is more than 50 pages/records with hierarchy there is wrong hierarchy render.

As I'm found in wp-damin/includes/nav-menu.php on line 621 we have function wp_nav_menu_item_post_type_meta_box that select from database 50 records and order it by name.
There is no ordering by parent, so sometimes it takes records with parent from different set of data (because of limit to 50 records) and menu can't render proper hierarchy.
Unfortunately changes only ordering fixing this bug only on first set of data. If on next set of data ie. first record starts with parent from first set it's still wrong hierarchy.

Change History (1)

#1 @SergeyBiryukov
7 years ago

  • Component changed from Administration to Menus
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.