CoreFiles by mySites.guru
index.php47 lines, 1,060 bytes, from wordpress-5.0.21.zip
Raw History Compare with 5.0.20
md5
9504e3c798d4cedfcb0e1c8043478f3d
sha1
fdafa4b00f7fbe69601370bf4ebfb567f24410a5
sha256
6fffb23fde995f5b5670b46e71cc6e1d284b271c5b1ad7d7e6bf93dd11db77e8
<?php
/**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package WordPress
 * @subpackage Twenty_Nineteen
 * @since 1.0.0
 */

get_header();
?>

	<section id="primary" class="content-area">
		<main id="main" class="site-main">

		<?php
		if ( have_posts() ) {

			// Load posts loop.
			while ( have_posts() ) {
				the_post();
				get_template_part( 'template-parts/content/content' );
			}

			// Previous/next page navigation.
			twentynineteen_the_posts_navigation();

		} else {

			// If no content, include the "No posts found" template.
			get_template_part( 'template-parts/content/content', 'none' );

		}
		?>

		</main><!-- .site-main -->
	</section><!-- .content-area -->

<?php
get_footer();

The same content is in 111 releases, WordPress 5.0.2-RC1 to 5.2.31. See them all, or every version of this file.