[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 19:42:10 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 | Focuses:
-------------------------------+---------------------
Changes (by audrasjb):
* keywords: php81 => php81 needs-patch
* milestone: Awaiting Review => 6.3
Comment:
> Of course, this can be fixed by replacing null by array() as second
param but I wonder if WordPress should not protect itself from this notice
by replacing any empty $terms by array()
Agreed. Moving this for 6.3 consideration.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57923#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list