[wp-trac] [WordPress Trac] #34715: transition_post_status does not fire when untrashing a post
WordPress Trac
noreply at wordpress.org
Thu Nov 19 15:16:55 UTC 2015
#34715: transition_post_status does not fire when untrashing a post
-------------------------------+----------------------
Reporter: SeBsZ | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Posts, Post Types | Version: 4.3.1
Severity: normal | Resolution: invalid
Keywords: | Focuses:
-------------------------------+----------------------
Changes (by johnbillion):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Tested with untrashing a published custom post type, and the
`transition_post_status` hook fires as expected with `publish` and `trash`
as the `$new_status` and `$old_status` parameters as expected.
The `wp_transition_post_status()` function is called for all post types
except attachments: https://core.trac.wordpress.org/browser/tags/4.3.1/src
/wp-includes/post.php#L3517
I'm not sure what to suggest to aid in your debugging I'm afraid, but the
hook definitely fires as expected. You may want to try posting your custom
post type code on the WordPress.org support forums or on WordPress Stack
Exchange to see if anyone can help.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34715#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list