mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-20 09:36:15 +01:00
a2845863e5
This commit brings over several changes that occurred upstream in the theme’s GitHub repository into core. - Fix the gallery caption link color. https://github.com/WordPress/twentynineteen/pull/687 - Remove left padding from pullquote blocks. https://github.com/WordPress/twentynineteen/pull/690 - Print `skip-link-focus-fix` inline instead of enqueueing as blocking script. https://github .com/WordPress/twentynineteen/pull/47 - Fix and improve some strings with placeholders. https://github.com/WordPress/twentynineteen/pull/217 - Fixes some minor code quality issues. https://github.com/WordPress/twentynineteen/pull/237 - Fix PHP Warning: Parameter must be an array or an object that implements Countable. https://github .com/WordPress/twentynineteen/pull/661 - Add missing text domain and escaping to comment author text. https://github.com/WordPress/twentynineteen/pull/274 - Remove hyphens rule for cover image text. https://github.com/WordPress/twentynineteen/pull/691 - Fix left/right-aligned pullquote spacing. https://github.com/WordPress/twentynineteen/pull/695 - Improve `readme.txt` to follow the correct standards for themes. https://github.com/WordPress/twentynineteen/issues/689 Props kjellr, allancole, dimadin, westonruter, khleomix, grapplerulrich, iCaleb, desrosj. Merges [44196], [44199], and [44201-44202] into trunk. Fixes #45424. Built from https://develop.svn.wordpress.org/trunk@44305 git-svn-id: http://core.svn.wordpress.org/trunk@44135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
61 lines
1.7 KiB
PHP
61 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* The template for displaying all single posts
|
|
*
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Twenty_Nineteen
|
|
* @since 1.0.0
|
|
*/
|
|
|
|
get_header();
|
|
?>
|
|
|
|
<section id="primary" class="content-area">
|
|
<main id="main" class="site-main">
|
|
|
|
<?php
|
|
|
|
/* Start the Loop */
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
|
|
get_template_part( 'template-parts/content/content', 'single' );
|
|
|
|
if ( is_singular( 'attachment' ) ) {
|
|
// Parent post navigation.
|
|
the_post_navigation(
|
|
array(
|
|
/* translators: %s: parent post link */
|
|
'prev_text' => sprintf( __( '<span class="meta-nav">Published in</span><span class="post-title">%s</span>', 'twentynineteen' ), '%title' ),
|
|
)
|
|
);
|
|
} elseif ( is_singular( 'post' ) ) {
|
|
// Previous/next post navigation.
|
|
the_post_navigation(
|
|
array(
|
|
'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next Post', 'twentynineteen' ) . '</span> ' .
|
|
'<span class="screen-reader-text">' . __( 'Next post:', 'twentynineteen' ) . '</span> <br/>' .
|
|
'<span class="post-title">%title</span>',
|
|
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous Post', 'twentynineteen' ) . '</span> ' .
|
|
'<span class="screen-reader-text">' . __( 'Previous post:', 'twentynineteen' ) . '</span> <br/>' .
|
|
'<span class="post-title">%title</span>',
|
|
)
|
|
);
|
|
}
|
|
|
|
// If comments are open or we have at least one comment, load up the comment template.
|
|
if ( comments_open() || get_comments_number() ) {
|
|
comments_template();
|
|
}
|
|
|
|
endwhile; // End of the loop.
|
|
?>
|
|
|
|
</main><!-- #main -->
|
|
</section><!-- #primary -->
|
|
|
|
<?php
|
|
get_footer();
|