We no longer need the outer array.

git-svn-id: http://svn.automattic.com/wordpress/trunk@4178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-09-09 01:09:21 +00:00
parent 93a7a9617f
commit 5af4905706
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,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}", array('old'=>$oldvalue, 'new'=>$_newvalue));
do_action("update_option_{$option_name}", $oldvalue, $_newvalue);
return true;
}
return false;