Update templates/single-product/review.php
Replaced hard coded date format with get_option('date_format') so that date format from admin panel is used instead. (woohoo, my first Github contribution :-))
This commit is contained in:
parent
b226b38c0c
commit
02261e975c
|
@ -38,7 +38,7 @@ global $post;
|
|||
if ( woocommerce_customer_bought_product( $GLOBALS['comment']->comment_author_email, $GLOBALS['comment']->user_id, $post->ID ) )
|
||||
echo '(' . __( 'verified owner', 'woocommerce' ) . ') ';
|
||||
|
||||
?>– <time itemprop="datePublished" time datetime="<?php echo get_comment_date('c'); ?>"><?php echo get_comment_date(__( 'M jS Y', 'woocommerce' )); ?></time>:
|
||||
?>– <time itemprop="datePublished" time datetime="<?php echo get_comment_date('c'); ?>"><?php echo get_comment_date(__( get_option('date_format'), 'woocommerce' )); ?></time>:
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue