mirror of
https://github.com/woocommerce/storefront.git
synced 2025-08-20 04:00:29 +08:00
Use proper escape function (#1576)
This commit is contained in:
parent
f192fe85c9
commit
1ef384ce0d
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ if ( ! function_exists( 'storefront_comment' ) ) {
|
|||
<?php endif; ?>
|
||||
|
||||
<a href="<?php echo esc_url( htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ); ?>" class="comment-date">
|
||||
<?php echo '<time datetime="' . esc_html( get_comment_date( 'c' ) ) . '">' . esc_html( get_comment_date() ) . '</time>'; ?>
|
||||
<?php echo '<time datetime="' . esc_attr( get_comment_date( 'c' ) ) . '">' . esc_html( get_comment_date() ) . '</time>'; ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php if ( 'div' !== $args['style'] ) : ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue