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 )