Skip to content

Commit

Permalink
sanitize each element separately, because we do want html for the com…
Browse files Browse the repository at this point in the history
…ment author link
  • Loading branch information
jazzsequence committed Jan 12, 2015
1 parent d6a34b8 commit 62b46ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,11 @@ function ap_core_comment($comment, $args, $depth) {
<?php endif; ?>
</div>
<div class="media-body">
<label><?php echo esc_html( sprintf(_x('On %1$s at %2$s, %3$s said:', '1: date, 2: time, 3:author', 'museum-core'), get_comment_date(), get_comment_time(), get_comment_author_link()) ); ?></label>
<label><?php echo sprintf(_x('On %1$s at %2$s, %3$s said:', '1: date, 2: time, 3:author', 'museum-core'),
esc_html( get_comment_date() ),
esc_html( get_comment_time() ),
wp_kses_post( get_comment_author_link() )
); ?></label>
<?php if ($comment->comment_approved == '0') : ?>
<em><?php _e('Your comment is awaiting moderation.', 'museum-core') ?></em>
<br />
Expand Down

0 comments on commit 62b46ac

Please sign in to comment.