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:
parent
6e2d108bf0
commit
afd5de8f9d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue