[wp-trac] [WordPress Trac] #21989: update_option() calls sanitize_option() twice when option does not exist
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 25 05:39:25 UTC 2012
#21989: update_option() calls sanitize_option() twice when option does not exist
-------------------------------------------------+-------------------------
Reporter: MikeSchinkel | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: Administration | Review
Severity: normal | Version:
Keywords: needs-patch dev-feedback 2nd- | Resolution:
opinion |
-------------------------------------------------+-------------------------
Comment (by MikeSchinkel):
As a quick update about how I worked around what was causing the problem,
I moved the API authentication code into `admin_init()` and read and
updated `$_POST` directly making sure to only do so on an update for this
one plugin's admin settings page.
Just FYI for anyone else who might have the same issue prior to this
getting fixed in core or if it does not get fixed in core.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21989#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list