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 | 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)
Change History (4)
#1
@
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?
Note: See
TracTickets for help on using
tickets.
debug-list-items-inside-function