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/activity/template.php

    r9417 r9471  
    2222         */
    2323        public function test_user_can_delete() {
    24                 global $bp;
     24                $bp = buddypress();
    2525
    2626                $a = $this->factory->activity->create( array(
     
    134134                        'action' => 'activity_update',
    135135                ) );
    136 
    137                 global $wpdb, $bp;
    138136
    139137                $ids = wp_list_pluck( $activities_template->activities, 'id' );
Note: See TracChangeset for help on using the changeset viewer.