Code Duplication    Length = 14-14 lines in 2 locations

templates/myaccount/view-order.php 1 location

@@ 38-51 (lines=14) @@
35
<?php if ( $notes = $order->get_customer_order_notes() ) : ?>
36
	<h2><?php _e( 'Order Updates', 'woocommerce' ); ?></h2>
37
	<ol class="woocommerce-OrderUpdates commentlist notes">
38
		<?php foreach ( $notes as $note ) : ?>
39
		<li class="woocommerce-OrderUpdate comment note">
40
			<div class="woocommerce-OrderUpdate-inner comment_container">
41
				<div class="woocommerce-OrderUpdate-text comment-text">
42
					<p class="woocommerce-OrderUpdate-meta meta"><?php echo date_i18n( __( 'l jS \o\f F Y, h:ia', 'woocommerce' ), strtotime( $note->comment_date ) ); ?></p>
43
					<div class="woocommerce-OrderUpdate-description description">
44
						<?php echo wpautop( wptexturize( $note->comment_content ) ); ?>
45
					</div>
46
	  				<div class="clear"></div>
47
	  			</div>
48
				<div class="clear"></div>
49
			</div>
50
		</li>
51
		<?php endforeach; ?>
52
	</ol>
53
<?php endif; ?>
54

templates/order/tracking.php 1 location

@@ 36-49 (lines=14) @@
33
<?php if ( $notes = $order->get_customer_order_notes() ) : ?>
34
	<h2><?php _e( 'Order Updates', 'woocommerce' ); ?></h2>
35
	<ol class="commentlist notes">
36
		<?php foreach ( $notes as $note ) : ?>
37
		<li class="comment note">
38
			<div class="comment_container">
39
				<div class="comment-text">
40
					<p class="meta"><?php echo date_i18n( __( 'l jS \o\f F Y, h:ia', 'woocommerce' ), strtotime( $note->comment_date ) ); ?></p>
41
					<div class="description">
42
						<?php echo wpautop( wptexturize( $note->comment_content ) ); ?>
43
					</div>
44
					<div class="clear"></div>
45
				</div>
46
				<div class="clear"></div>
47
			</div>
48
		</li>
49
		<?php endforeach; ?>
50
	</ol>
51
<?php endif; ?>
52