[wp-trac] [WordPress Trac] #15057: Is the double serialization in maybe_serialize( ) intentional ?
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 7 15:31:10 UTC 2010
#15057: Is the double serialization in maybe_serialize( ) intentional ?
--------------------------+-------------------------------------------------
Reporter: DrLightman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.0.1
Severity: normal | Keywords: double,serialization
--------------------------+-------------------------------------------------
{{{
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 :)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15057>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list