WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 2 years ago

#21669 new defect (bug)

Make "Home" option persistent in Pages box on Menus screen

Reported by: jane Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.4
Component: Menus Keywords: needs-patch
Focuses: Cc:

Description

If you have some pages, or even a page, then on nav-menus.php in the Pages box, View All, it will display Home as an option. However, if you do not have any pages at all (mostly Blog on front page scenarios), then it just says "No items." in the Pages box.

It should always be populated with at least the Home option. Oversight on our part that we didn't uncover this behavior before.

Change History (2)

#1 @bootsz
5 years ago

walk_nav_menu_tree() relies on actual Post objects to generate the list of Pages available with associated menu ID numbers. So we might want to think about whether an actual, default "Home" page should be created/stored in some way whenever "Front page displays" is set to "Your latest posts." Are there any other scenarios we'd need to consider?

The outcome of #21665 would have implications for this fix.

#2 @chriscct7
2 years ago

  • Severity changed from minor to normal
  • Version changed from 3.4.1 to 3.4
Note: See TracTickets for help on using tickets.