[wp-trac] [WordPress Trac] #43672: wp_delete_post() function ignores `$force_delete` parameter for custom post types

WordPress Trac noreply at wordpress.org
Wed Jul 5 15:55:14 UTC 2023


#43672: wp_delete_post() function ignores `$force_delete` parameter for custom post
types
-------------------------------+------------------------------
 Reporter:  sudar              |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  dev-feedback       |     Focuses:  administration
-------------------------------+------------------------------

Comment (by crstauf):

 IMO `wp_trash_post()` makes the `$force_delete` parameter of
 `wp_delete_post()` unnecessary: one function deletes, the other trashes. I
 would not expect `wp_delete_post()` to trash a post, when there's a
 separate function for that.

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


More information about the wp-trac mailing list