Skip to:
Content

BuddyPress.org

Changeset 8762


Ignore:
Timestamp:
08/06/2014 07:20:55 PM (10 years ago)
Author:
djpaul
Message:

Activity: fix bug where activity comments were not being shown to anonymous users.

Fixes #5567, props wolfhoundjesse

File:
1 edited

Legend:

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

    r8754 r8762  
    8686    <?php do_action( 'bp_before_activity_entry_comments' ); ?>
    8787
    88     <?php if ( ( is_user_logged_in() && bp_activity_can_comment() ) || bp_is_single_activity() ) : ?>
     88    <?php if ( ( bp_activity_get_comment_count() || bp_activity_can_comment() ) || bp_is_single_activity() ) : ?>
    8989
    9090        <div class="activity-comments">
     
    9292            <?php bp_activity_comments(); ?>
    9393
    94             <?php if ( is_user_logged_in() ) : ?>
     94            <?php if ( is_user_logged_in() && bp_activity_can_comment() ) : ?>
    9595
    9696                <form action="<?php bp_activity_comment_form_action(); ?>" method="post" id="ac-form-<?php bp_activity_id(); ?>" class="ac-form"<?php bp_activity_comment_form_nojs_display(); ?>>
Note: See TracChangeset for help on using the changeset viewer.