Post Types: allow trashing draft patterns.
Adds `delete_posts` to capabilities for the `wp_block` post type. Props ramonopoly, johnbillion, dhruvishah2203, audrasjb. Fixes #59041. Built from https://develop.svn.wordpress.org/trunk@56577 git-svn-id: http://core.svn.wordpress.org/trunk@56089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f54ef8f442
commit
da2581b4c1
|
@ -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',
|
||||
),
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.4-alpha-56576';
|
||||
$wp_version = '6.4-alpha-56577';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue