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

WordPress Trac noreply at wordpress.org
Tue Jun 13 04:16:05 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 has-     |     Focuses:
  unit-tests                                     |
-------------------------------------------------+-------------------------

Comment (by peterwilsoncc):

 In the [https://github.com/WordPress/wordpress-develop/pull/4603 linked
 pull request]:

 * changes from [attachment:"57923.diff"]
 * added some tests to ensure empty values clear the terms
 * set up some terms to use shared fixtures, needed to do a little
 refactoring to convert the taxonomy property to a static

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


More information about the wp-trac mailing list