[buddypress-trac] [BuddyPress Trac] #9227: Fatal error due to bp_get_object_terms function

buddypress-trac noreply at wordpress.org
Mon Sep 23 14:35:09 UTC 2024


#9227: Fatal error due to bp_get_object_terms function
----------------------------------------+--------------------------
 Reporter:  raviousprime                |       Owner:  espellcaste
     Type:  enhancement                 |      Status:  closed
 Priority:  normal                      |   Milestone:  15.0.0
Component:  Members                     |     Version:
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch has-testing-info  |
----------------------------------------+--------------------------
Changes (by espellcaste):

 * owner:  (none) => espellcaste
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"14025" 14025]:
 {{{
 #!CommitTicketReference repository="" revision="14025"
 Fix: `bp_get_object_terms` returning a `WP_Error` object when used too
 early.

 Added a `_doing_it_wrong` check to prevent errors when using the
 `bp_get_object_terms` function too early (before taxonomies are
 registered). Also, handle the case where `wp_get_object_terms()` returns
 an error.

 Props raviousprime, paulgibbs, and imath.

 Fixes #9227
 Closes https://github.com/buddypress/buddypress/pull/370/
 }}}

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


More information about the buddypress-trac mailing list