Pass old value to update_site_option hooks. props westi, fixes #17974.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bce03b27a6
commit
c3c4ced486
|
@ -3881,8 +3881,8 @@ function update_site_option( $option, $value ) {
|
|||
}
|
||||
|
||||
if ( $result ) {
|
||||
do_action( "update_site_option_{$option}", $option, $value );
|
||||
do_action( "update_site_option", $option, $value );
|
||||
do_action( "update_site_option_{$option}", $option, $value, $oldvalue );
|
||||
do_action( "update_site_option", $option, $value, $oldvalue );
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue