[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 13 09:19:44 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:  4.4
Component:  Posts, Post Types  |     Version:  2.9
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:  administration
-------------------------------+-----------------------------
Changes (by swissspidy):

 * keywords:  has-patch needs-refresh => has-patch


Comment:

 [attachment:33763.2.diff 33763.2.diff] separates the check from the `!
 $typenow` check and also fixes this in `wp-admin/post.php` like originally
 suggested.

 The error message was changed to `You are not allowed to edit posts in
 this post type.`, a string that's already used in core and doesn't need a
 new translation.

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


More information about the wp-trac mailing list