Skip to:
Content

BuddyPress.org

Changeset 4419


Ignore:
Timestamp:
05/24/2011 08:26:15 PM (15 years ago)
Author:
djpaul
Message:

Don't show a middle-dot and empty div when comments disabled. Fixes #3249, props hnla

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/functions.php

    r4416 r4419  
    440440                                        <?php if ( 1 == $depth ) : ?>
    441441                                                &middot; <a href="#comment-<?php comment_ID() ?>"><?php _e( 'View', 'buddypress' ) ?></a>
    442                                         <?php else: ?>
     442                                        <?php elseif ( comments_open() ) : ?>
    443443                                                &middot; <?php echo comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => __( 'Reply', 'buddypress' ) ) ) ?>
    444444                                        <?php endif; ?>
    445445
    446                                         <?php edit_comment_link( __( 'Edit', 'buddypress' ), '&middot; ', '' ) ?>
     446                                        <?php edit_comment_link( __( 'Edit', 'buddypress' ), '&middot; ', '' ); ?>
    447447                                </p>
    448448                        </div>
     
    454454                        <?php comment_text() ?>
    455455
    456                         <?php if ( 1 == $depth ) : ?>
     456                        <?php if ( 1 == $depth && comments_open() ) : ?>
    457457                                <div class="comment-options">
    458458                                        <?php echo comment_reply_link( array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ?>
Note: See TracChangeset for help on using the changeset viewer.