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:
parent
9a6630ed11
commit
3f82bf5819
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue