[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
Mon Sep 7 13:29:54 UTC 2015


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

 * keywords:  needs-patch 2nd-opinion => 2nd-opinion has-patch


Comment:

 The attached patch mimics the behaviour of `post-new.php` and returns an
 error when `show_ui` is set to false.

 I agree that people do weird things with post types and misusing `show_ui`
 may be one of them. Perhaps someone can scan the plugin directory for
 usages of `'show_ui' => false`?

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


More information about the wp-trac mailing list