Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/24/2021 01:54:39 AM (4 years ago)
Author:
imath
Message:

Make sure deleting an activity comment also deletes its children

This commit also takes care of redirecting the user to the activity single view when clicking on the comment button and there is no comment form available for the corresponding activity. This case can happen on a single member's activity stream when the main activity is an activity comment.

Props yesbutmaybeno

Fixes #8415

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/activity/entry.php

    r12082 r13114  
    77 *
    88 * @since 3.0.0
    9  * @version 3.0.0
     9 * @version 10.0.0
    1010 */
    1111
    1212bp_nouveau_activity_hook( 'before', 'entry' ); ?>
    1313
    14 <li class="<?php bp_activity_css_class(); ?>" id="activity-<?php bp_activity_id(); ?>" data-bp-activity-id="<?php bp_activity_id(); ?>" data-bp-timestamp="<?php bp_nouveau_activity_timestamp(); ?>">
     14<li class="<?php bp_activity_css_class(); ?>" id="activity-<?php bp_activity_id(); ?>" <?php bp_nouveau_activity_data_attribute_id(); ?> data-bp-timestamp="<?php bp_nouveau_activity_timestamp(); ?>">
    1515
    1616    <div class="activity-avatar item-avatar">
Note: See TracChangeset for help on using the changeset viewer.