[wp-trac] [WordPress Trac] #64728: Using null as an array offset is deprecated in PHP 8.5.3

WordPress Trac noreply at wordpress.org
Wed Feb 25 23:56:58 UTC 2026


#64728: Using null as an array offset is deprecated in PHP 8.5.3
-------------------------------------------------+-------------------------
 Reporter:  sky_76                               |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  7.0
Component:  Administration                       |     Version:  6.9.1
 Severity:  minor                                |  Resolution:
 Keywords:  has-patch reporter-feedback needs-   |     Focuses:
  testing                                        |
-------------------------------------------------+-------------------------
Changes (by westonruter):

 * keywords:  has-patch => has-patch reporter-feedback needs-testing
 * milestone:  Awaiting Review => 7.0


Comment:

 @sky_76 I tried logging out `$args['parent']` on that line and it is
 always either a `string` or `false`. Perhaps you have a plugin that
 registers an admin menu node with a `parent` supplied as `null`? Can you
 log out the `$args` to find out what plugin/theme that is?

 In any case, it makes sense to improve the type checking here. I've opened
 https://github.com/WordPress/wordpress-develop/pull/11055 to fix. Please
 test that as well.

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


More information about the wp-trac mailing list