First nav menu automatically adds all pages (including sub pages) but doesn't preserve page hierarchy
|Reported by:||jamescollins||Owned by:||nacin|
When you first visit /wp-admin/nav-menus.php in WordPress 3.6, if you don't already have a menu defined it automatically creates a new menu with all published pages in the menu.
On sites with many published pages and particularly sites with multiple levels of pages (child/parent pages), all of those pages are added as top level nav menu items.
(After the first menu is created, subsequent new menu requests create empty menus with no menu items in them).
The functionality was introduced in .
Previous versions (such as 3.5) didn't automatically create a new menu.
Instead, when the first nav menu is automatically created I think we should either:
- only add all top level pages by default, or
- add all pages (including sub pages) but preserve the page hierarchy into the nav menu.
My preference would be option 1.
Change History (21)
comment:1 jamescollins — 4 months ago
- Keywords has-patch added
comment:9 SergeyBiryukov — 3 months ago
comment:11 nacin — 2 months ago
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
comment:14 ocean90 — 2 months ago
- Keywords needs-patch added; has-patch commit removed
- Resolution fixed deleted
- Status changed from closed to reopened