Skip to:
Content

BuddyPress.org

Opened 2 years ago

Closed 2 years ago

#8736 closed defect (bug) (fixed)

`bp_get_taxonomy_types()` is wrongly skipping Group/Member type term query

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 11.0.0 Priority: normal
Severity: normal Version:
Component: Core Keywords: has-patch
Cc:

Description

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.

Attachments (1)

8736.patch (745 bytes) - added by imath 2 years ago.

Download all attachments as: .zip

Change History (2)

@imath
2 years ago

#1 @imath
2 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 13323:

Make sure to run a type terms query when the types cache is empty

[13312] introduced a regression preventing group/member types stored as WP Terms to be retrieved.

Let's bring the right behavior back.

See #8649
Fixes #8736

Note: See TracTickets for help on using tickets.