Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#55841 new defect (bug)

wp_get_nav_menu_items doesn't work properly

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

Description

Function "wp_get_nav_menu_items" doesn't work correctly, when you try to retrieve a list of terms for a specific menu using slug returns all pages available.

Attachments (2)

list-menu-problem.png (70.3 KB) - added by andreamarrano 3 years ago.
debug-list-items-inside-function
list-menu-item.png (65.5 KB) - added by andreamarrano 3 years ago.
list-menu-items-admin-side

Download all attachments as: .zip

Change History (4)

@andreamarrano
3 years ago

debug-list-items-inside-function

@andreamarrano
3 years ago

list-menu-items-admin-side

#1 @peterwilsoncc
3 years ago

Hi @andreamarrano and welcome to trac!

I am having trouble reproducing your report. Are you able to test on a site running a default theme (such as Twenty Twenty-One) with all plugins disabled?

If you are calling wp_get_nav_menu_items() with the second parameter, $args, set are you able to provide a code sample too?

#2 @sabernhardt
3 years ago

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