[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:34:51 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:
---------------------------+----------------------
Changes (by ocean90):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Hello @lalitpendhare, thanks for your patch but the switch statement is
 correct as it is. There's no need for the `break` keyword after a
 `return`.

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


More information about the wp-trac mailing list