From d26bff6a3894b4695815ced918168662c0cd6a49 Mon Sep 17 00:00:00 2001 From: westi Date: Sun, 9 Dec 2007 11:49:25 +0000 Subject: [PATCH] Remove triming from string options fixes #4781 props hakre git-svn-id: http://svn.automattic.com/wordpress/trunk@6367 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 )