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

WordPress Trac noreply at wordpress.org
Wed Dec 15 04:07:08 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 isabel_brison):

 In [changeset:"52380" 52380]:
 {{{
 #!CommitTicketReference repository="" revision="52380"
 Fix deprecated usage of passing null to explode()

 As of PHP 8.1, explode() does not permit null as its second argument. This
 results in warnings being spat out on every page because of a usage of
 this in wp-includes/block-supports/layout.php.

 See #53635.
 Props noisysocks.
 }}}

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


More information about the wp-trac mailing list