Opened 10 months ago
Last modified 8 months ago
#21773 new defect (bug)
Scheduled pages/posts should not appear in custom menus
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Menus | Version: | 3.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
When I add a scheduled page/post in a custom menu the page/post immediately appears in the front-end menu.
I think these scheduled pages/posts should only be visible in the front-end navigation when their scheduled time is reached (as it is the case with automatic menus). Otherwise the "Schedule" functionality makes no sense with custom menus, especially for pages.
Here is another forum post regarding this issue: http://wordpress.org/support/topic/custom-menu-support-for-scheduled-pagesposts
Change History (6)
comment:1
SergeyBiryukov
— 10 months ago
- Component changed from General to Menus
comment:2
ericlewis
— 10 months ago
- Keywords reporter-feedback added
comment:3
Lorangeo
— 10 months ago
- Keywords reporter-feedback removed
The default menu (which is automatically generated) is OK. The problem is with custom menus.
It should be possible to create a custom menu, add some scheduled pages to it, and expect that these scheduled pages will only appear in the front-end menu when their scheduled time is reached.
Sorry if I'm not clear but my English is somewhat limited.
comment:4
c3mdigital
— 10 months ago
- Type changed from defect (bug) to enhancement
- Version set to 3.0
comment:5
jdcohan
— 8 months ago
Related:
Private and Draft pages also appear (to all users, including non-logged-in) in a Primary Navigation menu which is based on a Custom Menu. My most recent confirmed test was with WordPress 3.4.2 and Twenty Ten 1.4.
Seems to me this is a defect. I'm just saying...
comment:6
Lorangeo
— 8 months ago
- Type changed from enhancement to defect (bug)
jdcohan is right. Pages set as "Private" or "Draft" still appear in custom menus, even for users that are not logged in and that should not be aware of these contents.
From the WP codex:
Private content is published only for your eyes, or the eyes of only those with authorization permission levels to see private content. Normal users and visitors will not be aware of private content.
Based on this I would also consider it a defect that hopefully shouldn't be too difficult to fix.
Could not replicate the bug on trunk with twentyeleven.
If no custom menu has been created, the default menu uses the function wp_page_menu, which via wp_list_pages get_pages queries only for pages that have a post status of 'publish', while any scheduled posts would have the post status of 'future.'