Correct reversed logic in maybe_serialize. Props takayukister. fixes #4029

git-svn-id: https://develop.svn.wordpress.org/trunk@5102 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-03-25 23:23:52 +00:00
parent 6e2d108bf0
commit afd5de8f9d
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ function maybe_serialize($data) {
$data = trim($data); $data = trim($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) )
return serialize($data); return serialize($data);
return $data; return $data;
} }