From fbbf18d6c7425416b543be1a8cb2e67f5c232eb7 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 8 Jan 2010 20:09:04 +0000 Subject: [PATCH] Set result of insert git-svn-id: https://develop.svn.wordpress.org/trunk@12669 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 );