[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
Fri Sep 4 21:12:00 UTC 2015
#17609: 'View post' link shown even when post type can't be viewed on the front-end
-------------------------------+-----------------------
Reporter: scribu | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.4
Component: Posts, Post Types | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------------+-----------------------
Changes (by bradyvercher):
* status: closed => reopened
* resolution: fixed =>
Comment:
I have a plugin that allows for managing archive titles, descriptions and
permalink slugs using a CPT to house that data in the background. The
background CPT shouldn't be publicly queryable, but it still uses the
"edit slug box" for managing permalinks. This isn't possible after
[https://core.trac.wordpress.org/browser/trunk/src/wp-admin/edit-form-
advanced.php?rev=33672#L535 this line] was added in [33666].
Here's the [https://github.com/cedaro/cpt-
archives/blob/cb358fff37b072408d152da11f13562f00ff20d2/php/PostType/ArchiveHookProvider.php#L114-L117
plugin and registration args] I'm using for testing. This is probably an
edge case, but it would be nice to be able to continue supporting this
functionality.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17609#comment:52>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list