Skip to:
Content

BuddyPress.org

Ticket #6983: 6983.1.patch

File 6983.1.patch, 664 bytes (added by Offereins, 9 years ago)

Skip on activity_comment activity type in bp_activity_can_comment_reply()

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

    diff --git a/src/bp-activity/bp-activity-template.php b/src/bp-activity/bp-activity-template.php
    index b4240b2..f6b532e 100644
    a b function bp_activity_can_comment_reply( $comment = false ) { 
    30733073                $comment = bp_activity_current_comment();
    30743074        }
    30753075
    3076         if ( ! empty( $comment ) ) {
     3076        // Neutralize activity_comment.
     3077        if ( 'activity_comment' === bp_get_activity_type() ) {
     3078                $can_comment = false;
     3079
     3080        // Process comment.
     3081        } elseif ( ! empty( $comment ) ) {
    30773082
    30783083                // Fall back on current comment in activity loop.
    30793084                $comment_depth = isset( $comment->depth )