[wp-trac] [WordPress Trac] #17609: 'View post' link shown even when post type can't be viewed on the front-end
WordPress Trac
wp-trac at lists.automattic.com
Sun May 29 23:43:18 UTC 2011
#17609: 'View post' link shown even when post type can't be viewed on the front-end
--------------------------+----------------------------
Reporter: scribu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Post Types | Version:
Severity: normal | Keywords:
--------------------------+----------------------------
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=the-post-slug}}}
Related: #17040
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17609>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list