[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 09:36:47 UTC 2024
#60183: Missing $previous_status argument in post trash hooks causes fatal error
-------------------------------+-----------------------------
Reporter: joelcj91 | Owner: joelcj91
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 6.3
Severity: major | Keywords: has-patch
Focuses: php-compatibility |
-------------------------------+-----------------------------
In WordPress 6.3.0, the `$previous_status` argument was added to the
`pre_trash_post`, `wp_trash_post`, and `trashed_post` hooks in `wp-
includes/post.php`. However, this argument was not added to the
corresponding hooks in `wp-includes/class-wp-customizer-manager.php`. This
inconsistency leads to a fatal error when the code assumes the presence of
the $previous_status argument in Customizer-related contexts.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60183>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list