git-svn-id: http://svn.automattic.com/wordpress/trunk@8100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f5e12d887b
commit
7c878c14ad
|
@ -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 ) )
|
||||
|
|
Loading…
Reference in New Issue