[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 Sep 23 16:00:10 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-unit-tests needs- | Focuses:
dev-note | administration
-------------------------------------------------+-------------------------
Comment (by Mte90):
I checked, for xml-rpc https://github.com/WordPress/wordpress-
develop/blob/6bd7097626/tests/phpunit/tests/xmlrpc/wp/getPostType.php#L108
there is already a test for that capabilities.
Also `get_post_type_capabilities` doesn't have any test available, also
`get_bulk_actions` doesn't have any test https://github.com/WordPress
/wordpress-develop/blob/65ec280a54/src/wp-admin/includes/class-wp-posts-
list-table.php#L404 so I have no idea where to add the test.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30991#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list