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

WordPress Trac noreply at wordpress.org
Thu Feb 26 07:53:51 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:  Toolbar                              |     Version:  6.9.1
 Severity:  minor                                |  Resolution:
 Keywords:  has-patch reporter-feedback needs-   |     Focuses:
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by sky_76):

 Replying to [comment:2 westonruter]:
 > @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.
 >


 Ok, I am so sorry, it is just one plugin that is the culprit:


 {{{
     [id] => omgf
     [title] => OMGF
     [parent] =>
     [href] => https://mydomainname.com/wp-admin/options-general.php?page
 =optimize-webfonts
     [group] =>
     [meta] => Array
         (
         )
 }}}

 Maybe best to set this to "wontfix"? Again, sorry for that.

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


More information about the wp-trac mailing list