Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../public_h.../wp-conte.../plugins/wp-revie.../comments
File: comments.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* The template for displaying the comments.
[2] Fix | Delete
*
[3] Fix | Delete
* This contains both the comments and the comment form.
[4] Fix | Delete
*
[5] Fix | Delete
* @package WP_Review
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
// Do not delete these lines.
[9] Fix | Delete
if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) ) {
[10] Fix | Delete
die( __( 'Please do not load this page directly. Thanks!', 'wp-review' ) );
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
if ( post_password_required() ) { ?>
[14] Fix | Delete
<p class="nocomments"><?php _e( 'This post is password protected. Enter the password to view comments.', 'wp-review' ); ?></p>
[15] Fix | Delete
<?php
[16] Fix | Delete
return;
[17] Fix | Delete
}
[18] Fix | Delete
?>
[19] Fix | Delete
<!-- You can start editing here. -->
[20] Fix | Delete
<?php if ( have_comments() ) : ?>
[21] Fix | Delete
<div id="comments">
[22] Fix | Delete
<h4 class="total-comments">
[23] Fix | Delete
<?php
[24] Fix | Delete
$comments_number = intval( get_comments_number() );
[25] Fix | Delete
if ( 1 === $comments_number ) {
[26] Fix | Delete
esc_html_e( 'One Response', 'wp-review' );
[27] Fix | Delete
} else {
[28] Fix | Delete
printf(
[29] Fix | Delete
/* translators: number of comments */
[30] Fix | Delete
_nx(
[31] Fix | Delete
'%1$s Comment',
[32] Fix | Delete
'%1$s Comments',
[33] Fix | Delete
$comments_number,
[34] Fix | Delete
'comments title',
[35] Fix | Delete
'wp-review'
[36] Fix | Delete
),
[37] Fix | Delete
number_format_i18n( $comments_number )
[38] Fix | Delete
);
[39] Fix | Delete
}
[40] Fix | Delete
?>
[41] Fix | Delete
</h4>
[42] Fix | Delete
[43] Fix | Delete
<ol class="commentlist">
[44] Fix | Delete
<?php
[45] Fix | Delete
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { // Are there comments to navigate through.
[46] Fix | Delete
?>
[47] Fix | Delete
<div class="navigation">
[48] Fix | Delete
<div class="alignleft"><?php previous_comments_link(); ?></div>
[49] Fix | Delete
<div class="alignright"><?php next_comments_link(); ?></div>
[50] Fix | Delete
</div>
[51] Fix | Delete
<?php
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
wp_list_comments( 'callback=wp_review_comments' );
[55] Fix | Delete
[56] Fix | Delete
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { // Are there comments to navigate through.
[57] Fix | Delete
?>
[58] Fix | Delete
<div class="navigation">
[59] Fix | Delete
<div class="alignleft"><?php previous_comments_link(); ?></div>
[60] Fix | Delete
<div class="alignright"><?php next_comments_link(); ?></div>
[61] Fix | Delete
</div>
[62] Fix | Delete
<?php } ?>
[63] Fix | Delete
</ol>
[64] Fix | Delete
</div>
[65] Fix | Delete
<?php endif; ?>
[66] Fix | Delete
[67] Fix | Delete
<?php if ( comments_open() ) : ?>
[68] Fix | Delete
<div id="commentsAdd">
[69] Fix | Delete
<div id="respond" class="box m-t-6">
[70] Fix | Delete
<?php
[71] Fix | Delete
global $aria_req;
[72] Fix | Delete
$comments_args = array(
[73] Fix | Delete
'title_reply' => '<h4>' . __( 'Leave a Reply', 'wp-review' ) . '</h4>',
[74] Fix | Delete
'comment_notes_before' => '',
[75] Fix | Delete
'comment_notes_after' => '',
[76] Fix | Delete
'label_submit' => __( 'Post Comment', 'wp-review' ),
[77] Fix | Delete
'comment_field' => '<p class="comment-form-comment"><label for="comment" class="review-comment-field-msg">' . __( 'Comment*', 'wp-review' ) . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
[78] Fix | Delete
'fields' => apply_filters(
[79] Fix | Delete
'comment_form_default_fields',
[80] Fix | Delete
array(
[81] Fix | Delete
'author' => '<p class="comment-form-author">' . ( $req ? '' : '' ) . '<label for="author" class="review-comment-field-msg">' . __( 'Name*', 'wp-review' ) . '</label><input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',
[82] Fix | Delete
'email' => '<p class="comment-form-email">' . ( $req ? '' : '' ) . '<label for="email" class="review-comment-field-msg">' . __( 'Email*', 'wp-review' ) . '</label><input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>',
[83] Fix | Delete
'url' => '<p class="comment-form-url"><label for="url" class="review-comment-field-msg">' . __( 'Website', 'wp-review' ) . '</label><input id="url" name="url" type="text" value="' . esc_url( $commenter['comment_author_url'] ) . '" size="30" /></p>',
[84] Fix | Delete
'cookies' => '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes" /><label for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment.' ) . '</label></p>',
[85] Fix | Delete
)
[86] Fix | Delete
),
[87] Fix | Delete
);
[88] Fix | Delete
comment_form( $comments_args );
[89] Fix | Delete
?>
[90] Fix | Delete
</div>
[91] Fix | Delete
</div>
[92] Fix | Delete
<?php endif; // if you delete this the sky will fall on your head. ?>
[93] Fix | Delete
[94] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function