Edit File by line
/home/barbar84/public_h.../wp-inclu.../theme-co...
File: comments.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* @package WordPress
[2] Fix | Delete
* @subpackage Theme_Compat
[3] Fix | Delete
* @deprecated 3.0.0
[4] Fix | Delete
*
[5] Fix | Delete
* This file is here for backward compatibility with old themes and will be removed in a future version
[6] Fix | Delete
*/
[7] Fix | Delete
_deprecated_file(
[8] Fix | Delete
/* translators: %s: Template name. */
[9] Fix | Delete
sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
[10] Fix | Delete
'3.0.0',
[11] Fix | Delete
null,
[12] Fix | Delete
/* translators: %s: Template name. */
[13] Fix | Delete
sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
[14] Fix | Delete
);
[15] Fix | Delete
[16] Fix | Delete
// Do not delete these lines.
[17] Fix | Delete
if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && 'comments.php' === basename( $_SERVER['SCRIPT_FILENAME'] ) ) {
[18] Fix | Delete
die( 'Please do not load this page directly. Thanks!' );
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
if ( post_password_required() ) { ?>
[22] Fix | Delete
<p class="nocomments"><?php _e( 'This post is password protected. Enter the password to view comments.' ); ?></p>
[23] Fix | Delete
<?php
[24] Fix | Delete
return;
[25] Fix | Delete
}
[26] Fix | Delete
?>
[27] Fix | Delete
[28] Fix | Delete
<!-- You can start editing here. -->
[29] Fix | Delete
[30] Fix | Delete
<?php if ( have_comments() ) : ?>
[31] Fix | Delete
<h3 id="comments">
[32] Fix | Delete
<?php
[33] Fix | Delete
if ( 1 == get_comments_number() ) {
[34] Fix | Delete
printf(
[35] Fix | Delete
/* translators: %s: Post title. */
[36] Fix | Delete
__( 'One response to %s' ),
[37] Fix | Delete
'&#8220;' . get_the_title() . '&#8221;'
[38] Fix | Delete
);
[39] Fix | Delete
} else {
[40] Fix | Delete
printf(
[41] Fix | Delete
/* translators: 1: Number of comments, 2: Post title. */
[42] Fix | Delete
_n( '%1$s response to %2$s', '%1$s responses to %2$s', get_comments_number() ),
[43] Fix | Delete
number_format_i18n( get_comments_number() ),
[44] Fix | Delete
'&#8220;' . get_the_title() . '&#8221;'
[45] Fix | Delete
);
[46] Fix | Delete
}
[47] Fix | Delete
?>
[48] Fix | Delete
</h3>
[49] Fix | Delete
[50] Fix | Delete
<div class="navigation">
[51] Fix | Delete
<div class="alignleft"><?php previous_comments_link(); ?></div>
[52] Fix | Delete
<div class="alignright"><?php next_comments_link(); ?></div>
[53] Fix | Delete
</div>
[54] Fix | Delete
[55] Fix | Delete
<ol class="commentlist">
[56] Fix | Delete
<?php wp_list_comments(); ?>
[57] Fix | Delete
</ol>
[58] Fix | Delete
[59] Fix | Delete
<div class="navigation">
[60] Fix | Delete
<div class="alignleft"><?php previous_comments_link(); ?></div>
[61] Fix | Delete
<div class="alignright"><?php next_comments_link(); ?></div>
[62] Fix | Delete
</div>
[63] Fix | Delete
<?php else : // This is displayed if there are no comments so far. ?>
[64] Fix | Delete
[65] Fix | Delete
<?php if ( comments_open() ) : ?>
[66] Fix | Delete
<!-- If comments are open, but there are no comments. -->
[67] Fix | Delete
[68] Fix | Delete
<?php else : // Comments are closed. ?>
[69] Fix | Delete
<!-- If comments are closed. -->
[70] Fix | Delete
<p class="nocomments"><?php _e( 'Comments are closed.' ); ?></p>
[71] Fix | Delete
[72] Fix | Delete
<?php endif; ?>
[73] Fix | Delete
<?php endif; ?>
[74] Fix | Delete
[75] Fix | Delete
<?php comment_form(); ?>
[76] Fix | Delete
[77] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function