Make WordPress Core

Opened 17 months ago

Closed 12 months ago

Last modified 12 months ago

#57837 closed task (blessed) (fixed)

PHP 8.x: various compatibility fixes for WordPress 6.3

Reported by: hellofromtonya's profile hellofromTonya Owned by: hellofromtonya's profile hellofromTonya
Milestone: 6.3 Priority: normal
Severity: normal Version: 6.2
Component: General Keywords: php8 php81 php82
Focuses: coding-standards Cc:

Description

Previously:

This ticket will be used as an "epic", allowing a variety of small patches each fixing a specific failure to be added to and committed against this ticket.

For patches addressing all instances of failures related to one specific PHP version (such as PHP 8.0, 8.1, or 8.2) change across the codebase, separate tickets should still be opened.

For an example of issues/patches with separate tickets, see:

  • #53299 PHP 8.1: Update is_serialized function to accept Enums
  • #53465 PHP 8.1.: the default value of the flags parameter for htmlentities() et all needs to be explicitly set

When opening a separate ticket, please tag it with the appropriate PHP version keyword so that these tickets can be easily found:

Change History (7)

#1 follow-up: @drzraf
15 months ago

  • Version set to 6.2

Last edited 15 months ago by drzraf (previous) (diff)

#2 in reply to: ↑ 1 @SergeyBiryukov
15 months ago

Replying to drzraf:

Could you please consider changesets r54349 and/or r54351 which weren't merged but are necessary to avoid the rtrim(): Passing null to parameter #1 ($string) of type string is deprecated

Those changesets were merged in WordPress 6.1 and are still included in 6.2.

The deprecation notice could be triggered by a plugin or theme, does it still happen on a clean install?

Also, looking at comment:133:ticket:54504, might be a good idea to confirm that the site did in fact successfully update to 6.2, e.g. by doing a full file comparison.

This ticket was mentioned in Slack in #core by ironprogrammer. View the logs.


14 months ago

This ticket was mentioned in Slack in #core by mukeshpanchal27. View the logs.


12 months ago

#5 @audrasjb
12 months ago

  • Milestone changed from 6.3 to 6.4

Moving to 6.4 as WP 6.3 RC1 will be released today.

#6 @hellofromTonya
12 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

Closing as this ticket was specifically for 6.3.

#58850 is now open for the 6.4 cycle.

#7 @hellofromTonya
12 months ago

  • Milestone changed from 6.4 to 6.3

Whoops, forgot to move it back to the 6.3 cycle.

Note: See TracTickets for help on using tickets.