[wp-trac] Re: [WordPress Trac] #5209: Add an action hook and sanitize_option filter to add_option_{option_name}

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 16 22:49:38 GMT 2007


#5209: Add an action hook and sanitize_option filter to add_option_{option_name}
------------------------------------------------------------------+---------
 Reporter:  johnbillion                                           |        Owner:  anonymous
     Type:  enhancement                                           |       Status:  new      
 Priority:  normal                                                |    Milestone:  2.4      
Component:  General                                               |      Version:  2.3      
 Severity:  minor                                                 |   Resolution:           
 Keywords:  add_option, sanitize_option, hook, filter, has-patch  |  
------------------------------------------------------------------+---------
Changes (by johnbillion):

  * keywords:  add_option, pre_add_option, hook, filter, has-patch =>
               add_option, sanitize_option, hook, filter,
               has-patch
  * summary:  Two more new hooks: add_option_{option_name} and
              pre_add_option_{option_name} => Add an action
              hook and sanitize_option filter to
              add_option_{option_name}

Comment:

 In light of westi's comment over at #5208, I'm changing this ticket to
 propose adding the `sanitize_option` filter to `add_option_{option_name}`,
 in addition to an action hook.

 See new patch.

 Anyone see any problems with adding `sanitize_option` to the `add_option`
 function?

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5209#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list