<?php
if ( !
$comment->comment_type || 'comment' ===
$comment->comment_type
) : ?>
<div class="dashboard-comment-wrap has-row-actions <?php
echo $comment_row_class; ?>">
<p class="comment-meta">
<?php
// Comments might not have a post they relate to, e.g. programmatically created ones.
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>'
);
}