[wp-trac] [WordPress Trac] #21989: update_option() calls sanitize_option() twice when option does not exist
WordPress Trac
noreply at wordpress.org
Wed Dec 6 00:50:15 UTC 2017
#21989: update_option() calls sanitize_option() twice when option does not exist
-------------------------------------------------+-------------------------
Reporter: MikeSchinkel | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
Component: Options, Meta APIs | Release
Severity: normal | Version: 4.9.1
Keywords: dev-feedback has-patch needs- | Resolution:
testing needs-refresh | Focuses:
-------------------------------------------------+-------------------------
Changes (by Andy Schmidt):
* version: => 4.9.1
Comment:
Bug still occurs with 4.9.1.
Spent quite a while trying to figure out why a newly activated plugin,
which had its settings (in this case a path to external code includes)
configured for the first time, was complaining that functions from these
required files had already been declared previously.
Sorry - it's completely unintuitive for a plug-in developer to have the
validator be called TWICE, when the Options form was submitted ONCE.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21989#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list