[wp-trac] [WordPress Trac] #43207: `unregister_setting()` does not remove default option filter
WordPress Trac
noreply at wordpress.org
Thu Feb 1 22:57:40 UTC 2018
#43207: `unregister_setting()` does not remove default option filter
--------------------------------+-----------------------------
Reporter: flixos90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: 4.7
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------------+-----------------------------
When using `register_setting()` and providing a 'default' value, that
value is set as the default for `get_option()` calls using a filter.
However, when using `unregister_setting()` for such a setting, the filter
hook is not removed again. This seems like an oversight and should be
fixed.
For reference, the functionality was introduced in [38910].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43207>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list