Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2015 02:49:16 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Replace all remaining $bp global touches with buddypress().

All existing tests continue to pass as normal. I will further manually scrutinize each replacement to ensure correctness.

Fixes #5138. Any stragglers or updates will reference this ticket.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/groups/functions.php

    r9139 r9471  
    442442
    443443        // Get rid of any auto-created values
    444         global $wpdb, $bp;
     444        global $wpdb;
     445
     446        $bp = buddypress();
    445447        $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->groups->table_name_groupmeta} WHERE group_id = %d", $g ) );
    446448        wp_cache_delete( $g, 'group_meta' );
Note: See TracChangeset for help on using the changeset viewer.