Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/13/2014 10:48:15 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Update $bp global touches with calls to buddypress() in bp-groups-activity.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-activity.php

    r8428 r8832  
    1818 */
    1919function groups_register_activity_actions() {
    20     global $bp;
     20    $bp = buddypress();
    2121
    2222    if ( ! bp_is_active( 'activity' ) ) {
     
    164164
    165165        if ( ! empty( $uncached_ids ) ) {
    166             global $wpdb, $bp;
     166            global $wpdb;
     167            $bp = buddypress();
    167168            $uncached_ids_sql = implode( ',', wp_parse_id_list( $uncached_ids ) );
    168169            $groups = $wpdb->get_results( "SELECT * FROM {$bp->groups->table_name} WHERE id IN ({$uncached_ids_sql})" );
Note: See TracChangeset for help on using the changeset viewer.