WordPress.org

Make WordPress Core

Ticket #7133: patch-r8069-7133-00.patch

File patch-r8069-7133-00.patch, 517 bytes (added by hakre, 10 years ago)

Simply no need to trim(), fixes #7133

  • C:/data/htdocs/wordpress/wp-includes/functions.php

     
    404404
    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 );
    410410        if ( is_serialized( $data ) )