Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2015 02:49:16 AM (10 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/core/cache.php

    r8958 r9471  
    1414
    1515        // Confirm that all activitymeta is deleted
    16         global $wpdb, $bp;
     16        global $wpdb;
     17
     18        $bp = buddypress();
     19
    1720        $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->activity->table_name_meta} WHERE activity_id = %d", $a1 ) );
    1821
Note: See TracChangeset for help on using the changeset viewer.