Make WordPress Core

Changeset 8101


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-includes/functions.php

    r7963 r8101  
    405405function maybe_serialize( $data ) {
    406406    if ( is_string( $data ) )
    407         $data = trim( $data );
     407        return $data;
    408408    elseif ( is_array( $data ) || is_object( $data ) )
    409409        return serialize( $data );
Note: See TracChangeset for help on using the changeset viewer.