#55687 closed defect (bug) (invalid)
"{$new_status}_{$post->post_type}" publish status doesn't fire after deleted post republished from restore'd draft
Reported by: | majemedia | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.9.3 |
Component: | Posts, Post Types | Keywords: | |
Focuses: | administration | Cc: |
Description
Steps:
- set a method to watch for publish status as new status in the {$new_status}_{$post->post_type} action.
- Move a post to trash
- Restore post (gets set to draft status)
- Set the post's status to publish (via quick edit, post edit, bulk edit, doesn't matter). Also the screen view doesn't matter (all, draft, mine, etc)
Results:
- Action doesn't fire.
I haven't tested the other two actions in that method (this is the last one in the list). I tested this on a custom post type.
Environment:
- WP: 5.9.3
- Theme: seems agnostic but tested on twenttwentytwo
- Plugins: none (except for the one made to test the action)
- PHP: 7.4
Change History (3)
Note: See
TracTickets for help on using
tickets.
I should have noted that it DOES fire in all other circumstances except for the trash->draft->publish path.