From da2581b4c14bca930df68d51e9ddfa2f509a94f4 Mon Sep 17 00:00:00 2001 From: isabel_brison Date: Thu, 14 Sep 2023 05:53:11 +0000 Subject: [PATCH] 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 --- wp-includes/post.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index e1af9227a5..7100e7c3ac 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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', ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 8abf610973..1840b60adc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.