mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
git-svn-id: https://develop.svn.wordpress.org/branches/2.5@8101 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
933ce58a2e
commit
2777af5298
@ -404,7 +404,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…
x
Reference in New Issue
Block a user