[wp-trac] [WordPress Trac] #32271: Permalink is displayed for not publicly queryable posts
WordPress Trac
noreply at wordpress.org
Wed May 6 19:35:55 UTC 2015
#32271: Permalink is displayed for not publicly queryable posts
-------------------------------+-----------------------------
Reporter: ipm-frommen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Keywords:
Focuses: administration |
-------------------------------+-----------------------------
'''TLDR''': Why would I want to see a permalink (and have a button linking
to it) if the link doesn't work?
----
Currently, the permalink section when editing a post in the WordPress
admin is displayed depending on the value of the according post type's
`public` parameter/property.
In my opinion, this is a bug, and should thus be changed to be using the
`publicly_queryable` parameter/property instead. In case this
parameter/property is not explicitly set in the according
`register_post_type` call, it will implicitly be set to the value of the
`public` parameter/property.
Please find the attached patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32271>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list