Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#51432 new defect (bug)

Custom Links in Menu do not get post_parent set

Reported by: ascottme's profile ascottme Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.5.1
Component: Menus Keywords: reporter-feedback
Focuses: Cc:


To recreate:

  1. Create a menu
  2. Add a "Custom Link" as a child of one of the menu items
  3. In the database, the post_parent for that menu item is set to 0

Expected outcome:
The Custom Link should operate like other menu items, where the post_parent is set to the ID of the item it is nested under.

Change History (2)

#1 @justinahinon
4 years ago

Welcome to Trac, and thanks for opening this @ascottme.

Could you clarify please, what you mean by "the post_parent for that menu"?

From what I'm aware of, post_parent in in the wp_posts table and refers to the site posts.

#2 @SergeyBiryukov
4 years ago

  • Keywords reporter-feedback added
Note: See TracTickets for help on using tickets.