[wp-trac] [WordPress Trac] #42030: Introduce pre_trash_post filter
WordPress Trac
noreply at wordpress.org
Fri Sep 29 10:18:13 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:
-------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"41638"]:
{{{
#!CommitTicketReference repository="" revision="41638"
Posts, Post Types: Introduce `pre_trash_post` and `pre_untrash_post`
filters to allow for short-circuiting `wp_trash_post()` and
`wp_untrash_post()`.
This brings parity with `pre_delete_post` filter in `wp_delete_post()`,
introduced in [34082].
Props bor0.
Fixes #42030.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42030#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list