Changeset 8372 for trunk/wp-includes/functions.php
- Timestamp:
- 07/18/2008 04:43:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r8369 r8372 631 631 */ 632 632 function 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 ) ) 636 634 return serialize( $data ); 635 637 636 if ( is_serialized( $data ) ) 638 637 return serialize( $data ); 638 639 639 return $data; 640 640 }
Note: See TracChangeset
for help on using the changeset viewer.