WordPress.org

Make WordPress Core

Changeset 14074


Ignore:
Timestamp:
04/11/10 17:07:20 (5 years ago)
Author:
nacin
Message:

Revert changes to maybe_serialize() made in r13673. Do not prevent double-serialization of data. see #12930. see also #12416. xref #7347, r8100, r8372, and others.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r14066 r14074  
    10091009 */ 
    10101010function maybe_serialize( $data ) { 
    1011     if ( !is_scalar( $data ) ) 
     1011    if ( is_array( $data ) || is_object( $data ) ) 
     1012        return serialize( $data ); 
     1013 
     1014    if ( is_serialized( $data ) ) 
    10121015        return serialize( $data ); 
    10131016 
Note: See TracChangeset for help on using the changeset viewer.