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

WordPress Trac noreply at wordpress.org
Tue Mar 14 21:01:29 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 needs-patch 2nd-opinion  |     Focuses:
-------------------------------------------+---------------------

Comment (by SergeyBiryukov):

 Replying to [comment:2 costdev]:
 > The docs for the `$terms` parameter state:
 >
 >>  Passing an empty value will remove all related terms.

 We should probably improve that bit for clarity:

 > Passing an empty array will remove all related terms.

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


More information about the wp-trac mailing list