WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#13702 closed defect (bug) (fixed)

Requested nav menu objects array is not filtered

Reported by: filosofo Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: Menus Keywords: has-patch
Focuses: Cc:

Description

It should be, as it's how admin and unspecified wp_nav_menu get their menu objects.

Patch adds a simple filter that will allow plugin and theme developers to control access to menus, for example.

cf. #13694

Attachments (1)

filter-get-nav-menus.13702.diff (506 bytes) - added by filosofo 4 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 ryan4 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [15112]) wp_get_nav_menus filter. Props filosofo. fixes #13702

Note: See TracTickets for help on using tickets.