WordPress.org

Make WordPress Core

Changeset 6367


Ignore:
Timestamp:
12/09/07 11:49:25 (6 years ago)
Author:
westi
Message:

Remove triming from string options fixes #4781 props hakre

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r6365 r6367  
    291291    $safe_option_name = $wpdb->escape( $option_name ); 
    292292    $newvalue = sanitize_option( $option_name, $newvalue ); 
    293  
    294     // Likely legacy -- can we drop this? 
    295     if ( is_string( $newvalue ) ) 
    296         $newvalue = trim( $newvalue ); 
    297293 
    298294    // If the new and old values are the same, no need to update. 
Note: See TracChangeset for help on using the changeset viewer.