- <h4 class="comment-meta">
- <?php printf( /* translators: 1: comment author, 2: post link, 3: notification if the comment is pending */__( 'From %1$s on %2$s%3$s' ),
- '<cite class="comment-author">' . get_comment_author_link() . '</cite>', $comment_post_link.' '.$comment_link, ' <span class="approve">' . __( '[Pending]' ) . '</span>' ); ?>
- </h4>
+ <p class="comment-meta">
+ <?php
+ if ( $comment_post_link ) {
+ printf(
+ /* translators: 1: comment author, 2: post link, 3: notification if the comment is pending */
+ __( 'From %1$s on %2$s%3$s' ),
+ '<cite class="comment-author">' . get_comment_author_link( $comment ) . '</cite>',
+ $comment_post_link,
+ ' <span class="approve">' . __( '[Pending]' ) . '</span>'
+ );
+ } else {
+ printf(
+ /* translators: 1: comment author, 2: notification if the comment is pending */
+ __( 'From %1$s %2$s' ),
+ '<cite class="comment-author">' . get_comment_author_link( $comment ) . '</cite>',
+ ' <span class="approve">' . __( '[Pending]' ) . '</span>'
+ );
+ }
+ ?>
+ </p>