Ticket #4781: 4781.diff
File 4781.diff, 534 bytes (added by , 17 years ago) |
---|
-
wp-includes/functions.php
286 286 $safe_option_name = $wpdb->escape($option_name); 287 287 $newvalue = sanitize_option($option_name, $newvalue); 288 288 289 if ( is_string($newvalue) )290 $newvalue = trim($newvalue);291 292 289 // If the new and old values are the same, no need to update. 293 290 $oldvalue = get_option($safe_option_name); 294 291 if ( $newvalue === $oldvalue ) {