From 34f9711beb6b2c499cd7a5a26241e98c6b96071d Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 8 Jan 2010 20:09:04 +0000 Subject: [PATCH] Set result of insert git-svn-id: http://svn.automattic.com/wordpress/trunk@12669 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 649adfce65..279d80b8a6 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -3282,7 +3282,7 @@ function add_site_option( $key, $value ) { $value = maybe_serialize($value); - $wpdb->insert( $wpdb->sitemeta, array('site_id' => $wpdb->siteid, 'meta_key' => $key, 'meta_value' => $value) ); + $result = $wpdb->insert( $wpdb->sitemeta, array('site_id' => $wpdb->siteid, 'meta_key' => $key, 'meta_value' => $value) ); } do_action( "add_site_option_{$key}", $key, $value );