[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
Mon Mar 23 13:52:33 UTC 2015


#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:
     Type:  defect (bug)       |      Status:  reviewing
 Priority:  normal             |   Milestone:  Future Release
Component:  Posts, Post Types  |     Version:  4.1
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:  administration
-------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 The [http://codex.wordpress.org/Function_Reference/register_post_type
 Codex page] says: "There are also seven other primitive capabilities which
 are not referenced directly in core, except in map_meta_cap()..."

 That is no longer true since [29757], which uses `delete_posts` directly
 in the posts list table.

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


More information about the wp-trac mailing list