Opened 2 years ago
Last modified 5 hours ago
#17609 reopened defect (bug)
'View post' link shown even when post type can't be viewed on the front-end — at Version 1
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Post Types | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | michael@…, tamlyn, marko@…, ben@…, lol@…, info@…, jeve0@…, johnbillion, msykes@…, daedalon@…, nashwan.doaqan@…, mdhansen@…, info@…, jeff@… |
Description (last modified by scribu)
I have registered a CPT that's not meant to be displayed on the front-end:
'public' => false,
'show_ui' => true,
If I create such a post in the admin area, I still see the 'View post' link after saving and the 'Preview changes' button.
Both send me to the same URL, which gives a 404:
?post_type_name=single-post-slug
Related: #17040
Note: See
TracTickets for help on using
tickets.