Post Types: allow trashing draft patterns.

Adds `delete_posts` to capabilities for the `wp_block` post type.

Props ramonopoly, johnbillion, dhruvishah2203, audrasjb, isabel_brison, joemcgill.
Merges [56577] to the 6.3 branch.
Fixes #59041.




Built from https://develop.svn.wordpress.org/branches/6.3@56777


git-svn-id: http://core.svn.wordpress.org/branches/6.3@56289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2023-10-04 18:51:24 +00:00
parent 8d3525d461
commit a394649eb3
2 changed files with 3 additions and 1 deletions

View File

@ -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',
),

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.3.2-alpha-56776';
$wp_version = '6.3.2-alpha-56777';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.