[wp-trac] [WordPress Trac] #60183: Missing $previous_status argument in post trash hooks causes fatal error

WordPress Trac noreply at wordpress.org
Thu Jan 4 11:45:47 UTC 2024


#60183: Missing $previous_status argument in post trash hooks causes fatal error
-------------------------------+-----------------------
 Reporter:  joelcj91           |       Owner:  joelcj91
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  6.5
Component:  Posts, Post Types  |     Version:  6.3
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:
-------------------------------+-----------------------

Comment (by SergeyBiryukov):

 In [changeset:"57241" 57241]:
 {{{
 #!CommitTicketReference repository="" revision="57241"
 Tests: Add a unit test for post trash hooks executed when trashing a
 changeset.

 The test ensures that the correct number of arguments is passed to post
 trash hooks in `WP_Customize_Manager::trash_changeset_post()`, which
 bypasses `wp_trash_post()`.

 Follow-up to [56043], [57238].

 See #60183.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60183#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list