[buddypress-trac] [BuddyPress Trac] #9292: Harden the bp_get_object_terms function
buddypress-trac
noreply at wordpress.org
Fri Jun 6 08:43:57 UTC 2025
#9292: Harden the bp_get_object_terms function
--------------------------+-----------------------------
Reporter: shawfactor | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
An odd one I know but the function
bp_get_object_terms does this:
$site_terms = wp_get_object_terms( $object_ids, $site_taxonomies, $args );
$retval = array_merge( $retval, $site_terms );
except wp_get_object_terms may not actually an array, it can return a
error etc
I know this is unsual but I have used bp_get_default_taxonomies to remove
a taxaonomy hence egenerating an error
I think it would be a prudent to harden the above function
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9292>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list