[wp-trac] [WordPress Trac] #63256: Unnecessary array_map() call in get_terms() when object_ids is not set

WordPress Trac noreply at wordpress.org
Mon Jan 5 09:16:17 UTC 2026


#63256: Unnecessary array_map() call in get_terms() when object_ids is not set
--------------------------------------+------------------------
 Reporter:  dilipbheda                |       Owner:  audrasjb
     Type:  defect (bug)              |      Status:  reviewing
 Priority:  lowest                    |   Milestone:  7.0
Component:  Taxonomy                  |     Version:  4.7
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------

Comment (by staurand):

 Hi @westonruter

 That sounds odd to have a different behaviour between the values `null`
 and `false`, no?

 They are both invalid values (expecting `int|int[]`).

 Thanks.

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


More information about the wp-trac mailing list