Skip to:
Content

BuddyPress.org

Ticket #8728: 8728.01.patch

File 8728.01.patch, 549 bytes (added by emaralive, 2 years ago)

Fix for callback

  • src/bp-groups/bp-groups-activity.php

    diff --git src/bp-groups/bp-groups-activity.php src/bp-groups/bp-groups-activity.php
    index 1cafacd66..7f8ab0854 100644
    function bp_groups_filter_activity_user_can_delete( $retval, $activity ) { 
    655655                return $retval;
    656656        }
    657657
    658         if ( isset( $activity->component ) || 'groups' !== $activity->component ) {
     658        // Fixed: changed logical OR to logical AND.
     659        if ( isset( $activity->component ) && 'groups' !== $activity->component ) {
    659660                return $retval;
    660661        }
    661662