Make WordPress Core


Ignore:
Timestamp:
07/18/2008 04:43:23 PM (16 years ago)
Author:
ryan
Message:

Don't return if is_string(). Proceed to check if is_serialized(). fixes #7347 for trunk

File:
1 edited

Legend:

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

    r8369 r8372  
    631631 */
    632632function maybe_serialize( $data ) {
    633     if ( is_string( $data ) )
    634         return $data;
    635     elseif ( is_array( $data ) || is_object( $data ) )
     633    if ( is_array( $data ) || is_object( $data ) )
    636634        return serialize( $data );
     635
    637636    if ( is_serialized( $data ) )
    638637        return serialize( $data );
     638
    639639    return $data;
    640640}
Note: See TracChangeset for help on using the changeset viewer.