Make WordPress Core

Ticket #4781: 4781.diff

File 4781.diff, 534 bytes (added by hakre, 17 years ago)
  • wp-includes/functions.php

     
    286286        $safe_option_name = $wpdb->escape($option_name);
    287287        $newvalue = sanitize_option($option_name, $newvalue);
    288288
    289         if ( is_string($newvalue) )
    290                 $newvalue = trim($newvalue);
    291 
    292289        // If the new and old values are the same, no need to update.
    293290        $oldvalue = get_option($safe_option_name);
    294291        if ( $newvalue === $oldvalue ) {