From bdeb4e366330692c4191962b2e6aa959c07f155e Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 9 Dec 2007 11:49:25 +0000 Subject: [PATCH] Remove triming from string options fixes #4781 props hakre git-svn-id: https://develop.svn.wordpress.org/trunk@6367 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 34198a4558..ee42b0608f 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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 )