[wp-trac] [WordPress Trac] #10554: Duplicate filter for pre-update option modification

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 6 08:43:15 UTC 2009


#10554: Duplicate filter for pre-update option modification
-------------------------+--------------------------------------------------
 Reporter:  Adrian Lang  |       Owner:           
     Type:  enhancement  |      Status:  new      
 Priority:  low          |   Milestone:  2.9      
Component:  General      |     Version:  2.9      
 Severity:  minor        |    Keywords:  has-patch
-------------------------+--------------------------------------------------
Changes (by dd32):

  * keywords:  => has-patch
  * version:  => 2.9
  * component:  Plugins => General
  * milestone:  Unassigned => 2.9


Comment:

 {{{sanitize_option_{$option}}}} is for sanitizing the content of an
 option, And is only run if the function doesnt sanitize it itself.

 {{{pre_update_option_}}} can be used to prevent the option from being
 updated, as well as having a standard filter layout over all the
 *_option() functions.

 has-patch: Just to move it through the workflow, I dont think submitting a
 patch is worth anyones time, quicker to just update the code directly.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10554#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list