[wp-trac] [WordPress Trac] #57923: Deprecated notice fired by wp_set_object_terms() with PHP 8.1

WordPress Trac noreply at wordpress.org
Wed Mar 15 21:52:32 UTC 2023


#57923: Deprecated notice fired by wp_set_object_terms() with PHP 8.1
-----------------------------------------+---------------------
 Reporter:  Chouby                       |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  6.3
Component:  Taxonomy                     |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  php81 2nd-opinion has-patch  |     Focuses:
-----------------------------------------+---------------------

Comment (by peterwilsoncc):

 [attachment:"57923.diff"] LGTM with the addition of some tests. As a nit,
 it could do with an `elseif( ! is_array() )`

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


More information about the wp-trac mailing list