Make WordPress Core

Changeset 56577


Ignore:
Timestamp:
09/14/2023 05:51:09 AM (8 months ago)
Author:
isabel_brison
Message:

Post Types: allow trashing draft patterns.

Adds delete_posts to capabilities for the wp_block post type.

Props ramonopoly, johnbillion, dhruvishah2203, audrasjb.
Fixes #59041.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r56559 r56577  
    321321                'edit_published_posts'   => 'edit_published_posts',
    322322                'delete_published_posts' => 'delete_published_posts',
     323                // Enables trashing draft posts as well.
     324                'delete_posts'           => 'delete_posts',
    323325                'edit_others_posts'      => 'edit_others_posts',
    324326                'delete_others_posts'    => 'delete_others_posts',
Note: See TracChangeset for help on using the changeset viewer.