Indicate that the fall-through in `is_serialized()` is deliberate. fixes #24023.
Built from https://develop.svn.wordpress.org/trunk@25371 git-svn-id: http://core.svn.wordpress.org/trunk@25321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b533a2bd94
commit
8359c66176
|
@ -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