Skip to:
Content

BuddyPress.org

Changeset 12598


Ignore:
Timestamp:
03/28/2020 08:27:15 PM (20 months ago)
Author:
boonebgorges
Message:

Fix PHP notice in BP_Activity_Activity test.

The $comments variable is already an array of ints, so wp_list_pluck() is
not needed. Changes in PHP 7.4 surface an error when used like this.

See #8264.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/activity/class.BP_Activity_Activity.php

    r11737 r12598  
    3434        BP_Activity_Activity::delete_activity_item_comments( $parent_activity );
    3535
    36         $result = BP_Activity_Activity::get( array( 'in' => wp_list_pluck( $comments, 'id' ), ) );
     36        $result = BP_Activity_Activity::get( array( 'in' => $comments ) );
    3737        $this->assertEmpty( $result['activities'] );
    3838    }
Note: See TracChangeset for help on using the changeset viewer.