[wp-trac] [WordPress Trac] #15628: Trash_post action runs twice for each call
WordPress Trac
noreply at wordpress.org
Mon Jul 17 12:51:02 UTC 2017
#15628: Trash_post action runs twice for each call
------------------------------------+---------------------
Reporter: b-rad | Owner: ryan
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.3
Component: General | Version: 2.9
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+---------------------
Comment (by mkormendy):
Replying to [comment:6 SergeyBiryukov]:
> Shouldn't we also deprecate and rename `untrash_post` for consistency?
Yes one would think. I was working on a plugin and kept thinking that
wp_untrash_post was going to fire and never did. However there is a method
that is called wp_untrash_post which when called, does the untrashing of
the post in the trash and is not actually a hook.
Some semantic naming could help here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15628#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list