Opened 9 years ago
Closed 8 years ago
#37164 closed defect (bug) (duplicate)
WP Menu outputs posts with status "Draft" or "Pending"
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.5.3 |
Component: | Menus | Keywords: | dev-feedback |
Focuses: | administration, template | Cc: |
Description
When using "wp_get_nav_menu_items" function to output menu items, we are getting posts of any status - Published, Draft or Pending.
We have covered getting inactive posts in our framework by having a dedicated function for it but "wp_get_nav_menu_items" is core function and probably it should be done in core as well.
So, the end result would be that if I put inactive posts into menu, this function should filter those posts and output only active posts.
Change History (4)
Note: See
TracTickets for help on using
tickets.
I couldn't reproduce. In the menus the 'View all' list there's only the public one.