[wp-trac] [WordPress Trac] #17609: 'View post' link shown even when post type can't be viewed on the front-end
WordPress Trac
noreply at wordpress.org
Mon Jul 29 00:27:00 UTC 2013
#17609: 'View post' link shown even when post type can't be viewed on the front-end
--------------------------+------------------------------
Reporter: scribu | Owner: nacin
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by theaussiepea):
Confirming that
{{{
class-wp-posts-list-table.patch
}}}
Removes the "View" option for each post in wp-posts-lists for custom
posts. However, the permalink editing for the edit single post page (wp-
admin/post.php) is still visible.
So I added to the patch so permalink editing does not appear in the edit
single post page for custom post types that have 'publicly_queryable' set
to false.
It seems to make sense to use 'publicly_queryable' instead of 'public'
since 'publicly_queryable', in our testing, is what controls whether you
can see the post at the specified permalink url. (After talking to Nacin,
this is more complicated, so more work is needed)
Props to leogermani and ancawonka for their help!
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17609#comment:37>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list