WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 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:

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)

#1 @Denis-de-Bernardy
6 years ago

What does SVN blame say on that line of code?

#3 @scribu
6 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.