#44770 closed defect (bug) (fixed)
Customize: `option_{$option}` filter applied with a missing parameter
Reported by: | dlh | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.0.3 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Customize | Keywords: | |
Focuses: | Cc: |
Description
WP_Customize_Widgets::capture_filter_pre_get_option()
applies the option_{$option}
filter to the captured value, but without the second $option
parameter added in WordPress 4.4.
The missing parameter has the potential to generate fatal errors in PHP 7.1 and above from uncaught ArgumentCountError
exceptions if a function is hooked to the filter that accepts both parameters.
The attached patch would add the second parameter to the apply_filters()
call.
Attachments (1)
Change History (12)
#2
@
6 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 43561:
#3
@
6 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for 4.9.9 consideration.
Note: See
TracTickets for help on using
tickets.
Good catch.