Make WordPress Core

Ticket #59041: 59041.diff

File 59041.diff, 597 bytes (added by dhruvishah2203, 21 months ago)
  • src/wp-includes/post.php

    diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
    index 035fd1766a..e2735674ca 100644
    a b function create_initial_post_types() { 
    320320                                'edit_posts'             => 'edit_posts',
    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',
    325327                        ),