[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
Wed Oct 23 13:47:30 UTC 2019


#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:  Mte90
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Posts, Post Types                    |     Version:  4.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-dev-note has-unit-   |     Focuses:
  tests dev-feedback                             |  administration
-------------------------------------------------+-------------------------
Changes (by Mte90):

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


Comment:

 Again I looked the code and this time I chosen to investigate more on my
 own.
 I found the function where there are the checks for the metacap and added
 there.
 Now there is an unit test for that.

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


More information about the wp-trac mailing list