Changeset 1446
- Timestamp:
- 06/24/2004 01:00:31 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r1443 r1446 321 321 $newvalue = $newvalue; 322 322 $newvalue = trim($newvalue); // I can't think of any situation we wouldn't want to trim 323 324 // If the new and old values are the same, no need to update. 325 if ($newvalue == get_settings($option_name)) { 326 return true; 327 } 328 323 329 $newvalue = $wpdb->escape($newvalue); 324 330 $wpdb->query("UPDATE $wpdb->options SET option_value = '$newvalue' WHERE option_name = '$option_name'");
Note: See TracChangeset
for help on using the changeset viewer.