mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
git-svn-id: https://develop.svn.wordpress.org/trunk@8100 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 ) )
|
||||
|
||||
Reference in New Issue
Block a user