#60183 closed defect (bug) (fixed)
Missing $previous_status argument in post trash hooks causes fatal error
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.5 | Priority: | normal |
| Severity: | normal | Version: | 6.3 |
| Component: | Posts, Post Types | Keywords: | has-patch |
| Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
First patch