[wp-trac] [WordPress Trac] #19826: Error behavior for deleting trashed posts is different for Bulk Delete versus Empty Trash

WordPress Trac noreply at wordpress.org
Tue Aug 5 12:55:04 UTC 2025


#19826: Error behavior for deleting trashed posts is different for Bulk Delete
versus Empty Trash
-------------------------------------------------+-------------------------
 Reporter:  jpbellona                            |       Owner:
                                                 |  piontkowski
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Posts, Post Types                    |     Version:  3.1.2
 Severity:  minor                                |  Resolution:
 Keywords:  has-patch needs-testing has-test-    |     Focuses:
  info                                           |
-------------------------------------------------+-------------------------
Changes (by iamadisingh):

 * keywords:  has-patch needs-testing => has-patch needs-testing has-test-
               info


Comment:

 == Test Report
 === Description
 This report validates whether the indicated patch works as expected.

 Patch tested: https://github.com/WordPress/wordpress-develop/pull/9350

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.28
 - Server: nginx/1.27.3
 - Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
 - Browser: Chrome 138.0.0.0
 - OS: macOS
 - Theme: Twenty Twenty-Five 1.3
 - MU Plugins: None activated
 - Plugins:
   * Test Bulk Actions
   * Test Reports 1.2.0

 === Actual Results
 1.  ✅ Issue resolved with patch.

 === Additional Notes
 - Create another user with `author` role.
 - Create a test plugin with this code to give author role capability to
 edit others posts
 {{{#!php
 <?php

 add_action( 'init', function() {
     $role = get_role( 'author' );
     if ( $role ) {
         $role->add_cap( 'edit_others_posts' );

     }
 }, 20 );

 }}}

 - Have few posts created by admin and few posts created by author.
 - Log In as author and try to do bulk actions like move to trash selecting
 all posts including posts from author also.

 === Supplemental Artifacts
 Without Patch: https://files.catbox.moe/pdbj6j.mov

 With Patch: https://files.catbox.moe/6ay2nh.mov

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/19826#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list