#60183 closed defect (bug) (fixed)
Missing $previous_status argument in post trash hooks causes fatal error
| Reported by: | joelcj91 | Owned by: | joelcj91 |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.5 |
| Component: | Posts, Post Types | Version: | 6.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
First patch