Use double quotes. fixes #2332
git-svn-id: https://develop.svn.wordpress.org/trunk@3487 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c9096b231b
commit
9bd8f4ee17
|
@ -373,7 +373,7 @@ function update_option($option_name, $newvalue) {
|
|||
$option_name = $wpdb->escape($option_name);
|
||||
$wpdb->query("UPDATE $wpdb->options SET option_value = '$newvalue' WHERE option_name = '$option_name'");
|
||||
if ( $wpdb->rows_affected == 1 ) {
|
||||
do_action('update_option_{$option_name}', $oldvalue, $newvalue);
|
||||
do_action("update_option_{$option_name}", $oldvalue, $newvalue);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue