Changeset 3744 for branches/2.0/wp-includes/functions.php
- Timestamp:
- 04/22/2006 12:18:35 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-includes/functions.php
r3611 r3744 365 365 } 366 366 367 $_newvalue = $newvalue; 367 368 if ( is_array($newvalue) || is_object($newvalue) ) 368 369 $newvalue = serialize($newvalue); … … 374 375 $wpdb->query("UPDATE $wpdb->options SET option_value = '$newvalue' WHERE option_name = '$option_name'"); 375 376 if ( $wpdb->rows_affected == 1 ) { 376 do_action("update_option_{$option_name}", $oldvalue, $newvalue);377 do_action("update_option_{$option_name}", array('old'=>$oldvalue, 'new'=>$_newvalue)); 377 378 return true; 378 379 }
Note: See TracChangeset
for help on using the changeset viewer.