Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/24/2010 09:22:29 PM (14 years ago)
Author:
djpaul
Message:

Fixed #2676

File:
1 edited

Legend:

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

    r3232 r3300  
    1515
    1616            <?php
    17             $numTrackBacks = 0; $numComments = 0;
    18             foreach ( (array)$comments as $comment ) if ( get_comment_type() != "comment") $numTrackBacks++; else $numComments++;
     17                // Only include comments
     18                $numTrackBacks = 0; $numComments = 0;
     19                foreach ( (array)$comments as $comment )
     20                    if ( 'comment' != get_comment_type() )
     21                        $numTrackBacks++;
     22                    else
     23                        $numComments++;
    1924            ?>
    2025
    21             <span class="title"><?php the_title() ?></span>
    22             <h3 id="comments"><?php comments_number( 'No Comments', 'One Comment', $numComments . ' Comments' );?></h3>
     26            <h3 id="comments">
     27                <?php
     28                    printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', $numComments, 'buddypress' ),
     29                    number_format_i18n( $numComments ), '<em>' . get_the_title() . '</em>' );
     30                ?>
     31            </h3>
    2332
    2433            <?php do_action( 'bp_before_blog_comment_list' ) ?>
     
    96105                    <?php do_action( 'bp_before_blog_comment_form' ) ?>
    97106
    98                     <form action="<?php echo get_option( 'siteurl' ); ?>/wp-comments-post.php" method="post" id="commentform" class="standard-form">
     107                    <form action="<?php echo site_url( 'wp-comments-post.php' ) ?>" method="post" id="commentform" class="standard-form">
    99108
    100109                        <?php if ( $user_ID ) : ?>
Note: See TracChangeset for help on using the changeset viewer.