Add note about why double-serialization is done. props SergeyBiryukov. fixes #16597

git-svn-id: http://svn.automattic.com/wordpress/trunk@18807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2011-09-29 02:23:26 +00:00
parent f1ffd16440
commit 58e0851786
1 changed files with 2 additions and 0 deletions

View File

@ -1037,6 +1037,8 @@ function maybe_serialize( $data ) {
if ( is_array( $data ) || is_object( $data ) )
return serialize( $data );
// Double serialization is required for backward compatibility.
// See http://core.trac.wordpress.org/ticket/12930
if ( is_serialized( $data ) )
return serialize( $data );