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

git-svn-id: http://svn.automattic.com/wordpress/trunk@5102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-03-25 23:23:52 +00:00
parent 9a6630ed11
commit 3f82bf5819
1 changed files with 1 additions and 1 deletions

View File

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