mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Post Types: allow trashing draft patterns.
Adds `delete_posts` to capabilities for the `wp_block` post type. Props ramonopoly, johnbillion, dhruvishah2203, audrasjb. Fixes #59041. git-svn-id: https://develop.svn.wordpress.org/trunk@56577 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -320,6 +320,8 @@ function create_initial_post_types() {
|
||||
'edit_posts' => 'edit_posts',
|
||||
'edit_published_posts' => 'edit_published_posts',
|
||||
'delete_published_posts' => 'delete_published_posts',
|
||||
// Enables trashing draft posts as well.
|
||||
'delete_posts' => 'delete_posts',
|
||||
'edit_others_posts' => 'edit_others_posts',
|
||||
'delete_others_posts' => 'delete_others_posts',
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user