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

WordPress Trac noreply at wordpress.org
Wed Dec 15 09:20:05 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 youknowriad):

 Indeed, it seems we have unit tests for most block supports but not the
 layout, we'd definitely benefit from a new one there. These features are
 all covered in e2e tests but for these frontend rendering functions, some
 additional unit tests would be good.

 As for the changes itself, I'd like to encourage everyone to ideally make
 all the Gutenberg specific changes (block supports, ...) in the plugin as
 well if possible. The plugin is supposed to support two WP versions
 meaning that folks on previous versions won't benefit from these changes
 and it would create inconsistencies and some headaches for us doing the
 back porting for these features. (For instance this might get
 inadvertently reverted in the next block supports backports)

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

More information about the wp-trac mailing list