Indicate that the fall-through in `is_serialized()` is deliberate. fixes #24023.

git-svn-id: https://develop.svn.wordpress.org/trunk@25371 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi 2013-09-12 03:40:25 +00:00
parent a56e83373d
commit f1ef5c0e23
1 changed files with 1 additions and 0 deletions

View File

@ -282,6 +282,7 @@ function is_serialized( $data, $strict = true ) {
} elseif ( false === strpos( $data, '"' ) ) {
return false;
}
// or else fall through
case 'a' :
case 'O' :
return (bool) preg_match( "/^{$token}:[0-9]+:/s", $data );