[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
Wed Aug 27 16:22:32 UTC 2014
#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: Future Release
Component: Posts, Post Types | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------------+-----------------------------
Comment (by husobj):
Just to throw this use-case into the mix as it's something I already do...
just something to consider.
I have a custom post type which is not publicly queryable.
The post type is used to automatically add content to a 'pages' specified
by the parent_id.
So I use link filters to customise the URLs for my non-public post type to
link to the public parent page, which means my preview links link to the
'page' where my custom post type is used.
Would be good if whichever method is used to fix this includes a filter so
that it is still possible to include a preview link even if
publicly_queryable is set to false.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17609#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list