[wp-trac] [WordPress Trac] #17974: Not all of the update_site_option action hooks pass old value

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 4 09:04:59 UTC 2011


#17974: Not all of the update_site_option action hooks pass old value
--------------------------+-----------------------------------
 Reporter:  westi         |      Owner:  westi
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Multisite     |    Version:  3.2
 Severity:  normal        |   Keywords:  3.3-early westi-likes
--------------------------+-----------------------------------
 {{{update_site_option}}} has hooks similar to the ones in
 {{{update_option}}} but the add hooks don't pass the old value to the
 action:

 {{{
         do_action( "update_site_option_{$option}", $option, $value );
         do_action( "update_site_option", $option, $value );
 }}}

 Unlike the ones in {{{update_option}}}:

 {{{
                 do_action( "update_option_{$option}", $oldvalue,
 $_newvalue );
                 do_action( 'updated_option', $option, $oldvalue,
 $_newvalue );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17974>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list