[wp-trac] [WordPress Trac] #41909: Break statement missing in switch case in function.php file in wp-includes
WordPress Trac
noreply at wordpress.org
Mon Sep 18 11:28:15 UTC 2017
#41909: Break statement missing in switch case in function.php file in wp-includes
---------------------------+-----------------------------
Reporter: lalitpendhare | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
Break statement missing in switch case in function.php file in wp-includes
on line number 388 to 399
{{{
switch ( $token ) {
case 's' :
if ( $strict ) {
if ( '"' !== substr( $data, -2, 1 ) ) {
return false;
}
} elseif ( false === strpos( $data, '"' ) ) {
return false;
}
break;
// or else fall through
case 'a' : break;
case 'O' :
return (bool) preg_match( "/^{$token}:[0-9]+:/s",
$data );
break;
case 'b' : break;
case 'i' : break;
case 'd' :
$end = $strict ? '$' : '';
return (bool) preg_match(
"/^{$token}:[0-9.E-]+;$end/", $data );
break;
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41909>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list