[wp-trac] [WordPress Trac] #42030: Introduce pre_trash_post filter

WordPress Trac noreply at wordpress.org
Fri Sep 29 15:09:41 UTC 2017


#42030: Introduce pre_trash_post filter
-------------------------------+-----------------------------
 Reporter:  bor0               |       Owner:  SergeyBiryukov
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:  4.9
Component:  Posts, Post Types  |     Version:  trunk
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:
-------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 In [changeset:"41644"]:
 {{{
 #!CommitTicketReference repository="" revision="41644"
 Posts, Post Types: Correct
 `test_submitting_comment_to_trashed_post_returns_error()`.

 `wp_trash_post()` accepts a post ID, not a `WP_Post` object.

 See #42030.
 }}}

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


More information about the wp-trac mailing list