From 8359c661765d676fc20e8310aafb533c1b2ed7ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Thu, 12 Sep 2013 03:41:09 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 99c2b11b6b..fb7be8fdec 100644 --- a/wp-includes/functions.php +++ b/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 );