From c3c4ced486febbc6a3966b0e68d12f77ddaabce5 Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 10 Aug 2011 18:59:50 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index b53f12eaf2..1849658886 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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;