[wp-trac] [WordPress Trac] #43207: `unregister_setting()` does not remove default option filter

WordPress Trac noreply at wordpress.org
Thu Feb 1 23:07:23 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                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------
Changes (by flixos90):

 * keywords:  needs-patch => has-patch has-unit-tests


Comment:

 I just noticed this is not as critical as I had initially thought. Since
 the setting will not be registered anymore, the filter won't change
 anything. Regardless, it's redundant that way, so it should be removed
 again.

 [attachment:43207.diff] adds a patch with a test.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43207#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list