Opened 16 years ago
Closed 16 years ago
#15057 closed defect (bug) (wontfix)
Is the double serialization in maybe_serialize( ) intentional ?
| Reported by: | DrLightman | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 3.0.1 |
| Severity: | normal | Keywords: | double, serialization |
| Cc: | Focuses: |
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 :)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
What does SVN blame say on that line of code?