[buddypress-trac] [BuddyPress Trac] #9292: Harden the bp_get_object_terms function

buddypress-trac noreply at wordpress.org
Wed Jun 25 12:08:12 UTC 2025


#9292: Harden the bp_get_object_terms function
--------------------------------+------------------------------
 Reporter:  shawfactor          |       Owner:  johnjamesjacoby
     Type:  defect (bug)        |      Status:  assigned
 Priority:  normal              |   Milestone:  15.0.0
Component:  Core                |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  dev-feedback close  |
--------------------------------+------------------------------
Changes (by rollybueno):

 * keywords:   => dev-feedback close


Comment:

 On the Github version, the bp_get_object_terms() should already "harden"
 as per
 https://github.com/buddypress/buddypress/commit/95cd39a637001357adcfa83770594ae0d4e98870

 It already handles the WP_Error or anything that is not an array(),
 however, this has not been shipped yet. I checked the same function from
 https://wordpress.org/plugins/buddypress/ version and can confirm that:

 **From the SVN Version 14.3.4**
 [[Image(https://i.imgur.com/P790t5r.png)]]

 **Github master**
 [[Image(https://i.imgur.com/g4ezVxA.png)]]

 I'm not gonna close this since it's not been shipped yet, so I'll leave
 that to @johnjamesjacoby to decide..

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9292#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list