From 7c878c14ad67041e31f1bd6f70617b471c2e212e Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 16 Jun 2008 20:41:02 +0000 Subject: [PATCH] Don't trim strings in maybe_serialize(). Props hakre. fixes #7132 #7133 #4781 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@8100 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index a4b18ef32a..05d7052342 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -520,7 +520,7 @@ function delete_option( $name ) { function maybe_serialize( $data ) { if ( is_string( $data ) ) - $data = trim( $data ); + return $data; elseif ( is_array( $data ) || is_object( $data ) ) return serialize( $data ); if ( is_serialized( $data ) )