[wp-trac] [WordPress Trac] #33763: Post types with show_ui set to false should not be accessible via the admin area

WordPress Trac noreply at wordpress.org
Sun Sep 20 16:37:44 UTC 2015


#33763: Post types with show_ui set to false should not be accessible via the admin
area
----------------------------------+-----------------------------
 Reporter:  johnbillion           |       Owner:  johnbillion
     Type:  defect (bug)          |      Status:  closed
 Priority:  normal                |   Milestone:  4.4
Component:  Posts, Post Types     |     Version:  2.9
 Severity:  normal                |  Resolution:  fixed
 Keywords:  has-patch needs-docs  |     Focuses:  administration
----------------------------------+-----------------------------
Changes (by johnbillion):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34357"]:
 {{{
 #!CommitTicketReference repository="" revision="34357"
 Revisions are an exception when it comes to the editing UI. The `revision`
 post type cannot have its `show_ui` argument set to true because this
 allows access to the post type listing, creation, and editing UI, but
 `get_edit_post_link()` needs to return a URL for the editing UI for
 revisions as that's how the revisions UI works.

 Fixes #33763
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33763#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list