[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 12:30:10 UTC 2017


#41909: Break statement missing in switch case in function.php file in wp-includes
---------------------------+----------------------
 Reporter:  lalitpendhare  |       Owner:
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  General        |     Version:
 Severity:  normal         |  Resolution:  invalid
 Keywords:                 |     Focuses:
---------------------------+----------------------

Comment (by SergeyBiryukov):

 There's also no need for `break` after the "empty" cases here (`case 'a'`,
 `case 'b'`, `case 'i'`), as it will prevent them from falling through to
 the next case, which is what the current code is supposed to do.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41909#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list