Changeset 1009 for trunk/wp-includes/functions.php
- Timestamp:
- 03/25/2004 07:21:00 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r1007 r1009 344 344 345 345 function update_option($option_name, $newvalue) { 346 global $wpdb, $tableoptions ;346 global $wpdb, $tableoptions, $cache_settings; 347 347 // No validation at the moment 348 348 $wpdb->query("UPDATE $tableoptions SET option_value = '$newvalue' WHERE option_name = '$option_name'"); 349 $cache_settings = get_alloptions(); // Re cache settings 350 return true; 349 351 } 350 352
Note: See TracChangeset
for help on using the changeset viewer.