Make WordPress Core

Ticket #21474: 21474.diff

File 21474.diff, 2.6 KB (added by kovshenin, 13 years ago)
  • wp-content/themes/twentyten/functions.php

     
    330330        ?>
    331331        <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
    332332                <div id="comment-<?php comment_ID(); ?>">
    333                 <div class="comment-author vcard">
    334                         <?php echo get_avatar( $comment, 40 ); ?>
    335                         <?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
    336                 </div><!-- .comment-author .vcard -->
    337                 <?php if ( $comment->comment_approved == '0' ) : ?>
    338                         <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
    339                         <br />
    340                 <?php endif; ?>
     333                        <div class="comment-author vcard">
     334                                <?php echo get_avatar( $comment, 40 ); ?>
     335                                <?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
     336                        </div><!-- .comment-author .vcard -->
     337                        <?php if ( $comment->comment_approved == '0' ) : ?>
     338                                <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
     339                                <br />
     340                        <?php endif; ?>
    341341
    342                 <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
    343                         <?php
    344                                 /* translators: 1: date, 2: time */
    345                                 printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );
    346                         ?>
    347                 </div><!-- .comment-meta .commentmetadata -->
     342                        <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
     343                                <?php
     344                                        /* translators: 1: date, 2: time */
     345                                        printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );
     346                                ?>
     347                        </div><!-- .comment-meta .commentmetadata -->
    348348
    349                 <div class="comment-body"><?php comment_text(); ?></div>
     349                        <div class="comment-body"><?php comment_text(); ?></div>
    350350
    351                 <div class="reply">
    352                         <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    353                 </div><!-- .reply -->
    354         </div><!-- #comment-##  -->
     351                        <div class="reply">
     352                                <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
     353                        </div><!-- .reply -->
     354                </div><!-- #comment-##  -->
    355355
    356356        <?php
    357357                        break;