--- a/wp/wp-content/themes/twentytwelve/comments.php Tue Jun 09 11:14:17 2015 +0000
+++ b/wp/wp-content/themes/twentytwelve/comments.php Mon Oct 14 17:39:30 2019 +0200
@@ -17,8 +17,9 @@
* the visitor has not yet entered the password we will
* return early without loading the comments.
*/
-if ( post_password_required() )
+if ( post_password_required() ) {
return;
+}
?>
<div id="comments" class="comments-area">
@@ -28,13 +29,22 @@
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
- printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ),
- number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
+ printf(
+ _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ),
+ number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>'
+ );
?>
</h2>
<ol class="commentlist">
- <?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?>
+ <?php
+ wp_list_comments(
+ array(
+ 'callback' => 'twentytwelve_comment',
+ 'style' => 'ol',
+ )
+ );
+?>
</ol><!-- .commentlist -->
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
@@ -49,12 +59,13 @@
/* If there are no comments and comments are closed, let's leave a note.
* But we only want the note on posts and pages that had comments in the first place.
*/
- if ( ! comments_open() && get_comments_number() ) : ?>
- <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentytwelve' ); ?></p>
+ if ( ! comments_open() && get_comments_number() ) :
+ ?>
+ <p class="nocomments"><?php _e( 'Comments are closed.', 'twentytwelve' ); ?></p>
<?php endif; ?>
<?php endif; // have_comments() ?>
<?php comment_form(); ?>
-</div><!-- #comments .comments-area -->
\ No newline at end of file
+</div><!-- #comments .comments-area -->