[wp-trac] [WordPress Trac] #47715: Customize: Widgets filter overwrites options with empty value
WordPress Trac
noreply at wordpress.org
Tue Jul 16 20:51:53 UTC 2019
#47715: Customize: Widgets filter overwrites options with empty value
--------------------------+-----------------------------
Reporter: dlh | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 3.9
Severity: normal | Keywords: has-patch
Focuses: |
--------------------------+-----------------------------
`\WP_Customize_Widgets::capture_filter_pre_update_option()`, which is
hooked to the `pre_update_option` filter, does not return a value when it
attempts to return early, causing the filtered value to become `null`.
The attached patch ensures the filtered value is returned instead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47715>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list