Make WordPress Core

Opened 7 years ago

Last modified 9 months ago

#17609 closed defect (bug)

'View post' link shown even when post type can't be viewed on the front-end — at Version 1

Reported by: scribu Owned by:
Milestone: 4.4 Priority: normal
Severity: normal Version: 2.9
Component: Posts, Post Types Keywords: has-patch needs-refresh
Focuses: Cc:

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:


Related: #17040

Change History (2)

#1 @scribu
7 years ago

  • Description modified (diff)

7 years ago

Note: See TracTickets for help on using tickets.