[wp-trac] [WordPress Trac] #63061: Prepare for PHP 8.5

WordPress Trac noreply at wordpress.org
Mon Nov 10 20:27:02 UTC 2025


#63061: Prepare for PHP 8.5
--------------------------------------------+------------------------------
 Reporter:  johnbillion                     |       Owner:  (none)
     Type:  task (blessed)                  |      Status:  new
 Priority:  normal                          |   Milestone:  6.9
Component:  General                         |     Version:
 Severity:  normal                          |  Resolution:
 Keywords:  php85 has-patch needs-dev-note  |     Focuses:  php-
                                            |  compatibility
--------------------------------------------+------------------------------

Comment (by westonruter):

 In [changeset:"61191" 61191]:
 {{{
 #!CommitTicketReference repository="" revision="61191"
 Code Modernization: Fix instances of using `null` as an array offset.

 This avoids using multisite-specific tables and columns in
 `WP_Date_Query::validate_column()` when on a non-multisite install.
 Attempting to use `$wpdb->blogs` as an array index when `null` on a non-
 multisite install causes a deprecation notice in PHP 8.5. This also
 updates the multisite table alias in `wpdb` to make it clear they could be
 `null`.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10498

 Follow-up to [60904], [60809], [37477].

 Props westonruter, desrosj.
 See #63061.
 Fixes #63957.
 }}}

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


More information about the wp-trac mailing list