WordPress.org

Make WordPress Core

Opened 14 months ago

Last modified 10 months ago

#50913 closed task (blessed)

PHP 8.0: various compatibility fixes — at Version 1

Reported by: jrf Owned by:
Milestone: 5.6 Priority: normal
Severity: normal Version:
Component: General Keywords: php8 has-patch has-dev-note
Focuses: coding-standards Cc:

Description (last modified by SergeyBiryukov)

Once #50902 has been merged, a start can be made to apply fixes to WP core to fix the test failures on PHP 8.0.

Rather than opening a new ticket for every single patch, I'm proposing to use this ticket 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 8.0 change across the codebase, separate tickets should still be opened.

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

When opening a separate ticket, please tag it with the php8 keyword, so these can be easily found using this report: https://core.trac.wordpress.org/query?keywords=~php8

Change History (2)

#1 @SergeyBiryukov
14 months ago

  • Description modified (diff)

@jrf
14 months ago

Fix one fatal "argument must be passed by reference, value given" error. This single patch fixes 96 errors + 62 failures in the unit test run on PHP 8.0.

Note: See TracTickets for help on using tickets.