WordPress.org

Make WordPress Core

Changeset 8373


Ignore:
Timestamp:
07/18/08 16:43:49 (7 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r8370 r8373  
    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.