WordPress.org

Make WordPress Core

Changeset 8100


Ignore:
Timestamp:
06/16/2008 08:41:02 PM (10 years ago)
Author:
ryan
Message:

Don't trim strings in maybe_serialize(). Props hakre. fixes #7132 #7133 #4781 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r8094 r8100  
    521521function maybe_serialize( $data ) {
    522522    if ( is_string( $data ) )
    523         $data = trim( $data );
     523        return $data;
    524524    elseif ( is_array( $data ) || is_object( $data ) )
    525525        return serialize( $data );
Note: See TracChangeset for help on using the changeset viewer.