[wp-trac] [WordPress Trac] #37638: Allow plugins to do comprehensive late validation of settings
WordPress Trac
noreply at wordpress.org
Thu Aug 11 19:20:08 UTC 2016
#37638: Allow plugins to do comprehensive late validation of settings
-------------------------+--------------------
Reporter: westonruter | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.7
Component: Customize | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+--------------------
Comment (by westonruter):
@chandrapatel I don't really see applying filters a second time to be a
big problem. There is a problem with your alternate solution to move the
`apply_filters` call: this needs to be done inside the `validate` method
because if filters are used for validation, then if a plugin calls the
`validate()` method somewhere else then it won't then work. It is intended
that the `validate()` should be able to be called from other places than
just `validate_setting_values()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37638#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list