[wp-trac] [WordPress Trac] #32933: Allow pre-delete bailout in `wp_delete_post()`

WordPress Trac noreply at wordpress.org
Sat Sep 12 15:58:11 UTC 2015


#32933: Allow pre-delete bailout in `wp_delete_post()`
-------------------------------+-----------------------------
 Reporter:  boonebgorges       |       Owner:  wonderboymusic
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:  4.4
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:
-------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34082"]:
 {{{
 #!CommitTicketReference repository="" revision="34082"
 `wp_delete_post()`: add a filter, 'pre_delete_post', to allow bailout from
 the function if the filter returns a non-null value.

 Props boonebgorges.
 Fixes #32933.
 }}}

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


More information about the wp-trac mailing list