Skip to:
Content

BuddyPress.org

Changes between Version 1 and Version 2 of Ticket #7450, comment 1


Ignore:
Timestamp:
02/25/2017 06:47:55 PM (5 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7450, comment 1

    v1 v2  
    66
    77I've attached a patch that should fix the problem.
     8
     9In the meantime before this fix is added, you could add this hotfix to your theme's `functions.php` or [https://codex.buddypress.org/themes/bp-custom-php/ wp-content/plugins/bp-custom.php]:
     10
     11{{{#!php
     12// Hotfix for activity comment deletion bug - #7450
     13add_filter( 'bp_activity_delete_comment_pre', function( $retval, $activity_id ) {
     14    if ( empty( $activity_id ) ) {
     15        return false;
     16    }
     17
     18    return $retval;
     19}, 10, 2 );
     20}}}