WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 3 months ago

#51432 new defect (bug)

Custom Links in Menu do not get post_parent set

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

Description

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 months 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
3 months ago

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