[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:26:24 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 costdev):
See:
https://developer.wordpress.org/reference/functions/wp_set_object_terms
/#more-information
For return:
(array) An empty array if the $terms argument was NULL or empty –
successmessage for the removing of the term
So while the type isn't documented, the idea of passing `$terms` as `null`
is mentioned here. 🤔
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57923#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list