mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-10 21:00:59 +01:00
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:
parent
8d3525d461
commit
a394649eb3
@ -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.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.
|
||||
|
Loading…
Reference in New Issue
Block a user