Don't trim strings in maybe_serialize(). Props hakre. fixes #7132 #7133 #4781 for 2.5

git-svn-id: https://develop.svn.wordpress.org/branches/2.5@8101 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-06-16 20:41:15 +00:00
parent 933ce58a2e
commit 2777af5298

View File

@ -404,7 +404,7 @@ function delete_option( $name ) {
function maybe_serialize( $data ) { function maybe_serialize( $data ) {
if ( is_string( $data ) ) if ( is_string( $data ) )
$data = trim( $data ); return $data;
elseif ( is_array( $data ) || is_object( $data ) ) elseif ( is_array( $data ) || is_object( $data ) )
return serialize( $data ); return serialize( $data );
if ( is_serialized( $data ) ) if ( is_serialized( $data ) )