Make WordPress Core

Changeset 56777


Ignore:
Timestamp:
10/04/2023 06:49:57 PM (8 months ago)
Author:
audrasjb
Message:

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.

Location:
branches/6.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.3

  • branches/6.3/src/wp-includes/post.php

    r56517 r56777  
    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.