[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
Tue Sep 15 10:26:25 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          |     Focuses:  administration
-------------------------------+-----------------------------
Changes (by johnbillion):

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


Comment:

 In [changeset:"34177"]:
 {{{
 #!CommitTicketReference repository="" revision="34177"
 Remove the ability to view the post listing screen and post editing screen
 for post types with `show_ui` set to `false`. It is unexpected and
 unintended behaviour that this is allowed.

 If your plugin or site does rely on this behaviour, the arguments that are
 passed to `register_post_type()` should be altered so that `show_ui` is
 `true`, and arguments such as `show_in_menu`, `show_in_nav_menus`, and
 `show_in_admin_bar` are `false`.

 Fixes #33763
 Props swissspidy, johnbillion
 }}}

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


More information about the wp-trac mailing list