[wp-trac] [WordPress Trac] #24023: 3.5/wp-includes/functions.php : missing break statement

WordPress Trac noreply at wordpress.org
Wed Apr 10 02:44:54 UTC 2013


#24023: 3.5/wp-includes/functions.php : missing break statement
-----------------------------+--------------------------
 Reporter:  tivnet           |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:  3.5.1            |   Severity:  trivial
 Keywords:  needs-patch      |
-----------------------------+--------------------------
 Line 263:

 {{{
 switch ( $token ) {
 case 's' :
 if ( '"' !== $data[$length-2] )
 return false;
 case 'a' :
 }}}

 Need "break" after "return false", because return happens only if
 condition met. Otherwise - falls to case 'a'

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24023>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list