Opened 3 years ago
Closed 3 years ago
#15057 closed defect (bug) (wontfix)
Is the double serialization in maybe_serialize( ) intentional ?
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 3.0.1 |
| Severity: | normal | Keywords: | double, serialization |
| Cc: |
Description
function maybe_serialize( $data ) {
if ( is_array( $data ) || is_object( $data ) )
return serialize( $data );
if ( is_serialized( $data ) )
return serialize( $data );
return $data;
}
if ( is_serialized( $data ) )
return serialize( $data );
It creeps me out :)
Note: See
TracTickets for help on using
tickets.
What does SVN blame say on that line of code?