1 | Index: C:/data/htdocs/wordpress/wp-includes/functions.php |
---|
2 | =================================================================== |
---|
3 | --- C:/data/htdocs/wordpress/wp-includes/functions.php (revision 8075) |
---|
4 | +++ C:/data/htdocs/wordpress/wp-includes/functions.php (working copy) |
---|
5 | @@ -404,7 +404,7 @@ |
---|
6 | |
---|
7 | function maybe_serialize( $data ) { |
---|
8 | if ( is_string( $data ) ) |
---|
9 | - $data = trim( $data ); |
---|
10 | + return $data; |
---|
11 | elseif ( is_array( $data ) || is_object( $data ) ) |
---|
12 | return serialize( $data ); |
---|
13 | if ( is_serialized( $data ) ) |
---|