[wp-trac] [WordPress Trac] #23792: Disallow moving of locked posts to the trash

WordPress Trac noreply at wordpress.org
Mon Mar 18 06:53:36 UTC 2013


#23792: Disallow moving of locked posts to the trash
--------------------------------------+--------------------
 Reporter:  azaozz                    |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  3.6
Component:  Administration            |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |
--------------------------------------+--------------------

Comment (by azaozz):

 Replying to [comment:2 pdclark]:

 Sergey beat me to it :) Btw this code is unreachable now, there only for
 back-compat.

 > I've attached and tested a patch for bulk-edit.php.

 We should be checking the post lock before moving to the trash, i.e. that
 code block needs to be above `if ( !wp_trash_post($post_id) )`. Also not
 sure if we should exit when a post is locked, perhaps just skip it and
 continue moving the rest to the trash.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23792#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list