[buddypress-trac] [BuddyPress Trac] #8736: `bp_get_taxonomy_types()` is wrongly skipping Group/Member type term query
buddypress-trac
noreply at wordpress.org
Thu Sep 8 16:10:40 UTC 2022
#8736: `bp_get_taxonomy_types()` is wrongly skipping Group/Member type term query
--------------------------+-----------------------
Reporter: imath | Owner: imath
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 11.0.0
Component: Core | Version:
Severity: normal | Keywords: has-patch
--------------------------+-----------------------
This is a regression introduced in [13312]. Casting `false` to an array
produces `array( false )` and the empty `'bp_object_terms'` cache is
wrongly interpreted as an array containing a false value. As a result, the
query to get types saved into the db is never run, and using
`bp_get_taxonomy_types()` always return no member/group types even if some
were created.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8736>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list