Small fix to [13433], see #10788
git-svn-id: https://develop.svn.wordpress.org/trunk@13439 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e122f6d181
commit
a62faa1ccf
@ -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
Block a user