[wp-trac] [WordPress Trac] #30991: Post type object capability 'delete_posts' is referenced in the posts list table but does not exist unless 'map_meta_cap' is set to true for post type

WordPress Trac noreply at wordpress.org
Fri Sep 14 13:43:48 UTC 2018


#30991: Post type object capability 'delete_posts' is referenced in the posts list
table but does not exist unless 'map_meta_cap' is set to true for post type
-------------------------------------------------+-------------------------
 Reporter:  bamadesigner                         |       Owner:
                                                 |  johnbillion
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  4.9.9
Component:  Posts, Post Types                    |     Version:  4.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch dev-feedback needs-unit-   |     Focuses:
  tests needs-dev-note                           |  administration
-------------------------------------------------+-------------------------
Changes (by flixos90):

 * keywords:  has-patch dev-feedback => has-patch dev-feedback needs-unit-
     tests needs-dev-note


Comment:

 This approach makes sense to me.

 I think we still need tests for the change though, and developers should
 receive an extra heads-up about this, as this might affect folks who
 interact closely with post type capabilities. It could be part of a
 general dev-note about capability improvements.

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


More information about the wp-trac mailing list