Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#15057 closed defect (bug) (wontfix)

Is the double serialization in maybe_serialize( ) intentional ?

Reported by: DrLightman Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0.1
Component: General Keywords: double, serialization
Focuses: Cc:


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)

comment:1 @Denis-de-Bernardy5 years ago

What does SVN blame say on that line of code?

comment:3 @scribu5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

So, yeah, wontfix due to compatiblity reasons: [14074]

Note: See TracTickets for help on using tickets.