Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#17974 closed defect (bug) (fixed)

Not all of the update_site_option action hooks pass old value

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


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 13 years ago.

Download all attachments as: .zip

Change History (5)

#1 @westi
13 years ago

  • Keywords has-patch commit added

#2 @wpmuguru
13 years ago

Looks good.

#3 @SergeyBiryukov
13 years ago

  • Milestone changed from Future Release to 3.3

#4 @nacin
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

In [18521]:

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

Note: See TracTickets for help on using tickets.