[wp-trac] [WordPress Trac] #53635: PHP 8.1: various compatibility fixes

WordPress Trac noreply at wordpress.org
Wed Dec 15 05:14:58 UTC 2021


#53635: PHP 8.1: various compatibility fixes
--------------------------------------------+------------------------------
 Reporter:  SergeyBiryukov                  |       Owner:  hellofromTonya
     Type:  task (blessed)                  |      Status:  accepted
 Priority:  normal                          |   Milestone:  5.9
Component:  General                         |     Version:
 Severity:  normal                          |  Resolution:
 Keywords:  php81 has-patch has-unit-tests  |     Focuses:  coding-
                                            |  standards
--------------------------------------------+------------------------------

Comment (by noisysocks):

 Replying to [comment:157 jrf]:
 > @isabel_brison Where are the tests to accompany [52380] ? There is no
 safeguard in place now to ensure that this patch does not break something
 else.

 It's a new function added in WP 5.9. Unfortunately there aren't unit tests
 for the function though there may be some E2E tests in Gutenberg that
 cover the behaviour. @youknowriad would know for sure. I wanted to fix
 this as it's a very prominent warning when visiting any page on a WP 5.9
 site running PHP 8.1 🙂

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


More information about the wp-trac mailing list