[wp-trac] [WordPress Trac] #60982: warnings with php 8.1

WordPress Trac noreply at wordpress.org
Wed Apr 10 19:58:15 UTC 2024


#60982: warnings with php 8.1
-------------------------------------+------------------------------
 Reporter:  yus0                     |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  php81 reporter-feedback  |     Focuses:
-------------------------------------+------------------------------
Changes (by jrf):

 * keywords:   => php81 reporter-feedback
 * focuses:  php-compatibility =>


Comment:

 @yus0 thank you for your interest in contributing to WordPress.

 These warnings need a backtrace to see where they are originate from. In
 the fast majority of cases, these are caused by plugins passing an
 incorrect data type to a WP function.

 The fixes you propose are incorrect as they ''hide'' the errors instead of
 fixing them in the function calls which are actually causing them.

 Suggest: close unless the reporter provides details showing these
 deprecations can be traced back to function calls within WordPress itself.

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


More information about the wp-trac mailing list