[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
Tue Feb 25 12:48:24 UTC 2020


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

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


Comment:

 In [changeset:"47357" 47357]:
 {{{
 #!CommitTicketReference repository="" revision="47357"
 Posts, Post Types: Ensure `delete_posts` is included in default post type
 capabilities regardless of `map_meta_cap` value.

 This resolves PHP notices in a few places in core where this capability is
 checked.

 Props Mte90, johnbillion, dipesh.kakadiya, jipmoors, bamadesigner, dd32,
 johnjamesjacoby, xedin.unknown, flixos90, SergeyBiryukov.
 Fixes #30991.
 }}}

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


More information about the wp-trac mailing list