Skip to:
Content

BuddyPress.org

Changeset 7483


Ignore:
Timestamp:
10/29/2013 05:59:52 PM (12 years ago)
Author:
r-a-y
Message:

Make sure activity comments can be viewed on single activity pages.

r7482 removed the activity comment count check, which led to activity
comments not being displayed on single activity pages when a user was
not logged in.

This commit adds a check to see if we're on a single activity page in the
activity entry template to allow activity comments to be shown.

See #7482.

Location:
trunk
Files:
2 edited

Legend:

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

    r7482 r7483  
    8686    <?php do_action( 'bp_before_activity_entry_comments' ); ?>
    8787
    88     <?php if ( is_user_logged_in() && bp_activity_can_comment() ) : ?>
     88    <?php if ( ( is_user_logged_in() && bp_activity_can_comment() ) || bp_is_single_activity() ) : ?>
    8989
    9090        <div class="activity-comments">
  • trunk/bp-themes/bp-default/activity/entry.php

    r7482 r7483  
    8888    <?php do_action( 'bp_before_activity_entry_comments' ); ?>
    8989
    90     <?php if ( is_user_logged_in() && bp_activity_can_comment() ) : ?>
     90    <?php if ( ( is_user_logged_in() && bp_activity_can_comment() ) || bp_is_single_activity() ) : ?>
    9191
    9292        <div class="activity-comments">
Note: See TracChangeset for help on using the changeset viewer.