[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 15:58:31 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 costdev):
With [https://core.trac.wordpress.org/attachment/ticket/57923/57923.diff
57923.diff], should there be any concern that the `set_object_terms`
action will now pass `$terms` as `array()` rather than `array( null )`?
If not, then
[https://core.trac.wordpress.org/attachment/ticket/57923/57923.diff
57923.diff] looks good to me. Could do with a PHPUnit test to protect the
behaviour when `null` is passed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57923#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list