[wp-trac] [WordPress Trac] #58392: Add $post parameter to the wp_trash_post action.
WordPress Trac
noreply at wordpress.org
Wed May 24 11:38:55 UTC 2023
#58392: Add $post parameter to the wp_trash_post action.
-------------------------------+------------------------------
Reporter: mujuonly | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses:
-------------------------------+------------------------------
Changes (by nihar007):
* keywords: has-patch changes-requested => dev-feedback
Comment:
Hi,
I checked the source code and I saw trashed_post, untrash_post,
untrashed_post methods require post id not post and used multiple places.
I think post id is the best.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58392#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list