[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 03:05: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 peterwilsoncc):
Replying to [comment:6 costdev]:
> Question is, does "empty" refer to `empty( $terms ) === true`, or does
it refer to `null`, `''`, and `array()`?
I'm not sure what ''was'' meant back when when the docblock was written,
but I think it's a reasonable interpretation that it means `empty( $terms
) === true`.
I do think that's how it has been interpreted in the official
documentation that Colin refers to.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57923#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list