Opened 8 years ago
Closed 8 years ago
#32631 closed enhancement (fixed)
Prevent wp_get_nav_menu_items filter from not applying if there are no menu items
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Menus | Keywords: | has-patch |
Focuses: | Cc: |
Description
For Menu Customizer (#32576) we need to filter a menu's items. The menu may not have any items to begin with. The filter that is most useful for the filtering is wp_get_nav_menu_items
but this is currently not getting called if there were no items found up front. We need to change this so that even if no items were found up front, that the filter can still apply so plugins can add their own items to be returned.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Source: https://github.com/xwp/wordpress-develop/pull/91/files#diff-8ffabe2d2470a815389fd77c045d2c7fR562