Remove triming from string options fixes #4781 props hakre
git-svn-id: https://develop.svn.wordpress.org/trunk@6367 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
23b7e0b2c4
commit
bdeb4e3663
@ -291,10 +291,6 @@ function update_option( $option_name, $newvalue ) {
|
||||
$safe_option_name = $wpdb->escape( $option_name );
|
||||
$newvalue = sanitize_option( $option_name, $newvalue );
|
||||
|
||||
// Likely legacy -- can we drop this?
|
||||
if ( is_string( $newvalue ) )
|
||||
$newvalue = trim( $newvalue );
|
||||
|
||||
// If the new and old values are the same, no need to update.
|
||||
$oldvalue = get_option( $safe_option_name );
|
||||
if ( $newvalue === $oldvalue )
|
||||
|
Loading…
Reference in New Issue
Block a user