Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#17974 closed defect (bug) (fixed)

Not all of the update_site_option action hooks pass old value

Reported by: westi Owned by: westi
Priority: normal Milestone: 3.3
Component: Multisite Version: 3.2
Severity: normal Keywords: 3.3-early westi-likes has-patch commit
Cc: Focuses:

Description

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 );

Attachments (1)

update_site_option.context.diff​ (502 bytes ) - added by westi 15 years ago.

Download all attachments as: .zip

Change History (5)

#1 @westi
15 years ago

  • Keywords has-patch commit added

#2 @wpmuguru
15 years ago

Looks good.

#3 @SergeyBiryukov
15 years ago

  • Milestone Future Release → 3.3

#4 @nacin
15 years ago

  • Resolution → fixed
  • Status new → closed

In [18521]:

Pass old value to update_site_option hooks. props westi, fixes #17974.

Note: See TracTickets for help on using tickets.