Code Duplication    Length = 10-12 lines in 2 locations

page.php 1 location

@@ 21-30 (lines=10) @@
18
		<main id="main" class="site-main" role="main">
19
20
			<?php
21
			while ( have_posts() ) : the_post();
22
23
				get_template_part( 'template-parts/content', 'page' );
24
25
				// If comments are open or we have at least one comment, load up the comment template.
26
				if ( comments_open() || get_comments_number() ) :
27
					comments_template();
28
				endif;
29
30
			endwhile; // End of the loop.
31
			?>
32
33
		</main><!-- #main -->

single.php 1 location

@@ 16-27 (lines=12) @@
13
		<main id="main" class="site-main" role="main">
14
15
		<?php
16
		while ( have_posts() ) : the_post();
17
18
			get_template_part( 'template-parts/content', get_post_format() );
19
20
			the_post_navigation();
21
22
			// If comments are open or we have at least one comment, load up the comment template.
23
			if ( comments_open() || get_comments_number() ) :
24
				comments_template();
25
			endif;
26
27
		endwhile; // End of the loop.
28
		?>
29
30
		</main><!-- #main -->