[wp-trac] [WordPress Trac] #30940: Extend delete actions arguments
WordPress Trac
noreply at wordpress.org
Tue May 26 14:47:50 UTC 2020
#30940: Extend delete actions arguments
-------------------------------+----------------------
Reporter: jadpm | Owner: ocean90
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.5
Component: Posts, Post Types | Version: 4.2
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------------+----------------------
Comment (by ocean90):
In [changeset:"47856" 47856]:
{{{
#!CommitTicketReference repository="" revision="47856"
Posts, Post Types: Pass the post object to the `delete_attachment` action.
Also add the missing `$post` parameter to the `delete_post` and
`deleted_post` actions in `wp_delete_attachment()`.
See #30940.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30940#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list