[buddypress-trac] [BuddyPress Trac] #7077: Add a global scope option to the BP taxonomy wrapper functions

buddypress-trac noreply at wordpress.org
Sat May 28 16:37:24 UTC 2016


#7077: Add a global scope option to the BP taxonomy wrapper functions
------------------------------+---------------------------
 Reporter:  rekmla            |       Owner:  boonebgorges
     Type:  enhancement       |      Status:  reopened
 Priority:  normal            |   Milestone:  2.6
Component:  Component - Core  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |
------------------------------+---------------------------
Changes (by Offereins):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 As mentioned in
 [https://wordpress.slack.com/archives/buddypress/p1464452060004460 Slack],
 the `bp_register_taxonomies()` function now only runs when switching
 blogs. Since it doesn't run outside of the scope, `wp_get_object_terms()`
 consequently returns an `invalid_taxonomy` error for the current blog: the
 taxonomy isn't registered.

 This can be fixed by moving the register function outside of the switch
 block. Patch attached.

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


More information about the buddypress-trac mailing list