WordPress.org

Make WordPress Core

Opened 9 months ago

Closed 9 months ago

Last modified 9 months ago

#45641 closed defect (bug) (invalid)

php7.3 compatibility: "continue" targeting switch is equivalent to "break"

Reported by: f0rdprefect Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.0.1
Component: I18N Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

as shown in #44543 php7.3 requires different usage of continue in switch statements.
even though #44543 is marked as resolved, my wp5.0.1 installation throws exactly this error:
"PHP message: PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /wp-includes/pomo/plural-forms.php on line 210"

Might have slipped through when adjusting 7.3 compatibility?

Change History (4)

#2 @SergeyBiryukov
9 months ago

  • Component changed from General to I18N
  • Description modified (diff)
  • Keywords reporter-feedback close added

Hi @f0rdprefect, welcome to WordPress Trac!

What does line 210 of wp-includes/pomo/plural-forms.php look like on your install?

In WordPress 5.0.1, there's no continue operator there. If looks like some files in your environment failed to update.

#3 @f0rdprefect
9 months ago

  • Resolution set to invalid
  • Status changed from new to closed

@SergeyBiryukov thanks, completely my fault. don't sysadmin in a hurry. sorry for the noise!

#4 @SergeyBiryukov
9 months ago

  • Keywords reporter-feedback close removed
  • Milestone Awaiting Review deleted

No worries, thanks for the follow-up!

Note: See TracTickets for help on using tickets.