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:
parent
a56e83373d
commit
f1ef5c0e23
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue