mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-28 20:17:45 +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
33 lines
875 B
PHP
33 lines
875 B
PHP
<?php
|
|
/**
|
|
* The template for displaying Current Discussion on posts
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Twenty_Nineteen
|
|
* @since 1.0.0
|
|
*/
|
|
|
|
/* Get data from current discussion on post. */
|
|
$discussion = twentynineteen_get_discussion_data();
|
|
$has_responses = $discussion->responses > 0;
|
|
|
|
if ( $has_responses ) {
|
|
/* translators: %1(X comments)$s */
|
|
$meta_label = sprintf( _n( '%d Comment', '%d Comments', $discussion->responses, 'twentynineteen' ), $discussion->responses );
|
|
} else {
|
|
$meta_label = __( 'No comments', 'twentynineteen' );
|
|
}
|
|
?>
|
|
|
|
<div class="discussion-meta">
|
|
<?php
|
|
if ( $has_responses ) {
|
|
twentynineteen_discussion_avatars_list( $discussion->authors );
|
|
}
|
|
?>
|
|
<p class="discussion-meta-info">
|
|
<?php echo twentynineteen_get_icon_svg( 'comment', 24 ); ?>
|
|
<span><?php echo esc_html( $meta_label ); ?></span>
|
|
</p>
|
|
</div><!-- .discussion-meta -->
|