[wp-trac] [WordPress Trac] #60183: Missing $previous_status argument in post trash hooks causes fatal error
WordPress Trac
noreply at wordpress.org
Wed Jan 3 16:20:19 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:
-------------------------------+-----------------------
Changes (by SergeyBiryukov):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"57238" 57238]:
{{{
#!CommitTicketReference repository="" revision="57238"
Customize: Pass the previous status to post trash hooks when trashing a
changeset.
This 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].
Props joelcj91, mukesh27.
Fixes #60183.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60183#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list