[wp-trac] [WordPress Trac] #48747: WP_Customize_Setting doesn't clean up after itself
WordPress Trac
noreply at wordpress.org
Thu Nov 21 21:23:48 UTC 2019
#48747: WP_Customize_Setting doesn't clean up after itself
-------------------------------+------------------------------
Reporter: jon81 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 3.4
Severity: minor | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by dlh):
* keywords: => reporter-feedback
* focuses: template =>
* version: 5.3 => 3.4
Comment:
Hi @jon81, and welcome to WordPress Trac! Thanks for the report.
Putting aside the behavior of `remove_setting()` for a moment: If the
setting is being replaced to use a custom sanitizing callback, is there a
reason the `customize_sanitize_{$id}` filter can't be used instead?
I'm not sure whether there's a historical reason that the
`WP_Customize_Manager::remove_*()` methods don't attempt to remove any
hooks associated with the removed constructs. @westonruter sorry for the
ping, but do you know?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48747#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list