Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/16/2018 08:51:40 AM (8 years ago)
Author:
djpaul
Message:

Blogs, Activity: prevent replies to posts' activity comments when that post has disabled comments.

Fixes #7766

Props cyclic, r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-activity.php

    r11799 r12169  
    777777        }
    778778
     779        // Check if comments are still open for parent item.
     780        $comments_open = bp_blogs_comments_open( $parent_activity );
     781        if ( ! $comments_open ) {
     782                return;
     783        }
     784
    779785        // Get userdata.
    780786        if ( $params['user_id'] == bp_loggedin_user_id() ) {
Note: See TracChangeset for help on using the changeset viewer.