Small fix to [13433], see #10788
git-svn-id: http://svn.automattic.com/wordpress/trunk@13439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1ef299159c
commit
84269822eb
|
@ -3447,12 +3447,12 @@ function add_site_option( $option, $value ) {
|
|||
|
||||
$_value = $value;
|
||||
$value = maybe_serialize($value);
|
||||
|
||||
$result = $wpdb->insert( $wpdb->sitemeta, array('site_id' => $wpdb->siteid, 'meta_key' => $option, 'meta_value' => $value ) );
|
||||
$value = $_value;
|
||||
}
|
||||
|
||||
do_action( "add_site_option_{$option}", $option, $_value );
|
||||
do_action( "add_site_option", $option, $_value );
|
||||
do_action( "add_site_option_{$option}", $option, $value );
|
||||
do_action( "add_site_option", $option, $value );
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue