[wp-trac] [WordPress Trac] #64472: PHP Warning: "continue" targeting switch in wp-admin/includes/upgrade.php line 3073

WordPress Trac noreply at wordpress.org
Fri Jan 2 21:41:53 UTC 2026


#64472: PHP Warning: "continue" targeting switch in wp-admin/includes/upgrade.php
line 3073
-----------------------------+------------------------------
 Reporter:  phuochoit        |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  6.9
 Severity:  normal           |  Resolution:
 Keywords:  close            |     Focuses:
-----------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => close


Comment:

 Hi there, welcome to WordPress Trac! Thanks for the ticket.

 Replying to [ticket:64472 phuochoit]:
 > ## Root Cause
 > In `wp-admin/includes/upgrade.php`, starting at line 3018, there is a
 `foreach` loop that contains a `switch` statement (line 3028). At line
 3073, a `continue` statement is used within the `switch` block.

 There is indeed a `foreach` loop starting at line 3018, however there is
 no `continue` statement at [source:tags/6.9/src/wp-
 admin/includes/upgrade.php?marks=3071-3075#L3070 line 3073], or anywhere
 within that `switch` statement. It appears that the code on your site may
 have been edited and includes custom modifications.

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


More information about the wp-trac mailing list