#41909 closed defect (bug) (invalid)
Break statement missing in switch case in function.php file in wp-includes
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
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;
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Hello @lalitpendhare, thanks for your patch but the switch statement is correct as it is. There's no need for the
break
keyword after areturn
.