refactor comments.php
This commit is contained in:
+4
-4
@@ -28,8 +28,8 @@ if ( post_password_required() ) {
|
|||||||
?>
|
?>
|
||||||
<h2 class="comments-title">
|
<h2 class="comments-title">
|
||||||
<?php
|
<?php
|
||||||
$daisy_blog_comment_count = get_comments_number();
|
$zeitfresser_comment_count = get_comments_number();
|
||||||
if ( '1' === $daisy_blog_comment_count ) {
|
if ( '1' === $zeitfresser_comment_count ) {
|
||||||
printf(
|
printf(
|
||||||
/* translators: 1: title. */
|
/* translators: 1: title. */
|
||||||
esc_html__( 'One thought on “%1$s”', 'zeitfresser' ),
|
esc_html__( 'One thought on “%1$s”', 'zeitfresser' ),
|
||||||
@@ -38,8 +38,8 @@ if ( post_password_required() ) {
|
|||||||
} else {
|
} else {
|
||||||
printf(
|
printf(
|
||||||
/* translators: 1: comment count number, 2: title. */
|
/* translators: 1: comment count number, 2: title. */
|
||||||
esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $daisy_blog_comment_count, 'comments title', 'zeitfresser' ) ),
|
esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $zeitfresser_comment_count, 'comments title', 'zeitfresser' ) ),
|
||||||
number_format_i18n( $daisy_blog_comment_count ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
number_format_i18n( $zeitfresser_comment_count ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||||
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
|
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user