Skip to:
Content

BuddyPress.org

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#7263 closed enhancement (fixed)

Add BuddyPress-safe wrappers for get_objects_in_term() and get_term_by().

Reported by: dcavins's profile dcavins Owned by: dcavins's profile dcavins
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: Core Keywords: has-patch commit
Cc: boonebgorges, offereins

Description

Add wrapper functions for working with BuddyPress taxonomies via get_objects_in_term() and get_term_by().

Attachments (2)

7263.01.patch (3.1 KB) - added by dcavins 8 years ago.
Add BP wrappers for get_objects_in_term() and get_term_by().
7263.diff (3.4 KB) - added by boonebgorges 8 years ago.

Download all attachments as: .zip

Change History (7)

@dcavins
8 years ago

Add BP wrappers for get_objects_in_term() and get_term_by().

@boonebgorges
8 years ago

#1 @boonebgorges
8 years ago

  • Keywords commit added

Thanks, @dcavins! Functionality looks good to me. 7263.diff cleans up the documentation a little, and adds a note to each docblock about how the returned values are from the "taxonomy site", not necessarily the current site. cc @offereins

If you're good with the language, then the patch looks good to go.

This ticket was mentioned in Slack in #buddypress by dcavins. View the logs.


8 years ago

#3 @dcavins
8 years ago

In 11118:

Add multisite-aware wrapper for get_objects_in_term().

Add wrapper functions for working with BuddyPress taxonomies via
get_objects_in_term(). When working with BuddyPress objects like
users, we need to be sure that we’re referring to the taxonomies and
terms for the site on the network where the relevant taxonomy is
registered.

Props dcavins, boonebgorges, offereins.

See #7263.

#4 @dcavins
8 years ago

  • Owner set to dcavins
  • Resolution set to fixed
  • Status changed from new to closed

In 11119:

Add multisite-aware wrapper for get_term_by().

Add wrapper functions for working with BuddyPress taxonomies via

get_term_by(). When working with BuddyPress objects like users, we
need to be sure that we’re referring to the taxonomies and terms for
the site on the network where the relevant taxonomy is registered.

Props dcavins, boonebgorges, offereins.

Fixes #7263.

#5 @slaFFik
8 years ago

  • Version 2.6.3 deleted
Note: See TracTickets for help on using tickets.