From f1ef5c0e235cc42d21aef1ff1056d05193c5b6af Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Thu, 12 Sep 2013 03:40:25 +0000 Subject: [PATCH] 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 --- src/wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 99c2b11b6b..fb7be8fdec 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -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 );