[wp-trac] [WordPress Trac] #55687: "{$new_status}_{$post->post_type}" publish status doesn't fire after deleted post republished from restore'd draft

WordPress Trac noreply at wordpress.org
Thu May 5 17:19:35 UTC 2022


#55687: "{$new_status}_{$post->post_type}" publish status doesn't fire after
deleted post republished from restore'd draft
-------------------------------+-----------------------------
 Reporter:  majemedia          |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  5.9.3
 Severity:  normal             |   Keywords:
  Focuses:  administration     |
-------------------------------+-----------------------------
 Steps:

 1. set a method to watch for publish status as new status in the
 {$new_status}_{$post->post_type} action.
 1. Move a post to trash
 1. Restore post (gets set to draft status)
 1. 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:

 1. 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55687>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list