Fix Codesniffer errors.
This commit is contained in:
parent
b215eebe1e
commit
175524922c
17 changed files with 59 additions and 32 deletions
12
comments.php
12
comments.php
|
@ -25,7 +25,7 @@ if ( post_password_required() ) {
|
|||
<?php if ( have_comments() ) : ?>
|
||||
<h2 class="comments-title">
|
||||
<?php
|
||||
printf( // WPCS: XSS OK
|
||||
printf( // WPCS: XSS OK.
|
||||
esc_html( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', '_s' ) ),
|
||||
number_format_i18n( get_comments_number() ),
|
||||
'<span>' . get_the_title() . '</span>'
|
||||
|
@ -33,7 +33,7 @@ if ( post_password_required() ) {
|
|||
?>
|
||||
</h2>
|
||||
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
||||
<nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
|
||||
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', '_s' ); ?></h2>
|
||||
<div class="nav-links">
|
||||
|
@ -43,7 +43,7 @@ if ( post_password_required() ) {
|
|||
|
||||
</div><!-- .nav-links -->
|
||||
</nav><!-- #comment-nav-above -->
|
||||
<?php endif; // check for comment navigation ?>
|
||||
<?php endif; // Check for comment navigation. ?>
|
||||
|
||||
<ol class="comment-list">
|
||||
<?php
|
||||
|
@ -54,7 +54,7 @@ if ( post_password_required() ) {
|
|||
?>
|
||||
</ol><!-- .comment-list -->
|
||||
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
||||
<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
|
||||
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', '_s' ); ?></h2>
|
||||
<div class="nav-links">
|
||||
|
@ -64,9 +64,9 @@ if ( post_password_required() ) {
|
|||
|
||||
</div><!-- .nav-links -->
|
||||
</nav><!-- #comment-nav-below -->
|
||||
<?php endif; // check for comment navigation ?>
|
||||
<?php endif; // Check for comment navigation. ?>
|
||||
|
||||
<?php endif; // have_comments() ?>
|
||||
<?php endif; // Check for have_comments(). ?>
|
||||
|
||||
<?php
|
||||
// If comments are closed and there are comments, let's leave a little note, shall we?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue