[wp-trac] [WordPress Trac] #21989: update_option() calls sanitize_option() twice when option does not exist

WordPress Trac noreply at wordpress.org
Thu Apr 10 16:57:01 UTC 2014


#21989: update_option() calls sanitize_option() twice when option does not exist
------------------------------------+------------------------------
 Reporter:  MikeSchinkel            |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Options, Meta APIs      |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+------------------------------

Comment (by Denis-de-Bernardy):

 Aside on this: the `pre_update_` filters and not-option wrangling don't
 get done consistently in `update_option()` and `update_site_option()`.
 Probably for a second ticket, but worth noting regardless.

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


More information about the wp-trac mailing list