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
This commit is contained in:
ryan 2008-06-16 20:41:02 +00:00
parent f5e12d887b
commit 7c878c14ad
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) )