Edit File by line
/home/barbar84/www/wp-conte.../plugins/akismet_.../views
File: config.php
<div id="akismet-plugin-container">
[0] Fix | Delete
<div class="akismet-masthead">
[1] Fix | Delete
<div class="akismet-masthead__inside-container">
[2] Fix | Delete
<div class="akismet-masthead__logo-container">
[3] Fix | Delete
<img class="akismet-masthead__logo" src="<?php echo esc_url( plugins_url( '../_inc/img/logo-full-2x.png', __FILE__ ) ); ?>" alt="Akismet" />
[4] Fix | Delete
</div>
[5] Fix | Delete
</div>
[6] Fix | Delete
</div>
[7] Fix | Delete
<div class="akismet-lower">
[8] Fix | Delete
<?php if ( Akismet::get_api_key() ) { ?>
[9] Fix | Delete
<?php Akismet_Admin::display_status(); ?>
[10] Fix | Delete
<?php } ?>
[11] Fix | Delete
<?php if ( ! empty( $notices ) ) { ?>
[12] Fix | Delete
<?php foreach ( $notices as $notice ) { ?>
[13] Fix | Delete
<?php Akismet::view( 'notice', $notice ); ?>
[14] Fix | Delete
<?php } ?>
[15] Fix | Delete
<?php } ?>
[16] Fix | Delete
<?php if ( $stat_totals && isset( $stat_totals['all'] ) && (int) $stat_totals['all']->spam > 0 ) : ?>
[17] Fix | Delete
<div class="akismet-card">
[18] Fix | Delete
<div class="akismet-section-header">
[19] Fix | Delete
<div class="akismet-section-header__label">
[20] Fix | Delete
<span><?php esc_html_e( 'Statistics' , 'akismet'); ?></span>
[21] Fix | Delete
</div>
[22] Fix | Delete
<div class="akismet-section-header__actions">
[23] Fix | Delete
<a href="<?php echo esc_url( Akismet_Admin::get_page_url( 'stats' ) ); ?>">
[24] Fix | Delete
<?php esc_html_e( 'Detailed Stats' , 'akismet');?>
[25] Fix | Delete
</a>
[26] Fix | Delete
</div>
[27] Fix | Delete
</div>
[28] Fix | Delete
[29] Fix | Delete
<div class="akismet-new-snapshot">
[30] Fix | Delete
<iframe allowtransparency="true" scrolling="no" frameborder="0" style="width: 100%; height: 220px; overflow: hidden;" src="<?php printf( '//akismet.com/web/1.0/snapshot.php?blog=%s&api_key=%s&height=200&locale=%s', urlencode( get_option( 'home' ) ), Akismet::get_api_key(), get_locale() );?>"></iframe>
[31] Fix | Delete
<ul>
[32] Fix | Delete
<li>
[33] Fix | Delete
<h3><?php esc_html_e( 'Past six months' , 'akismet');?></h3>
[34] Fix | Delete
<span><?php echo number_format( $stat_totals['6-months']->spam );?></span>
[35] Fix | Delete
<?php echo esc_html( _n( 'Spam blocked', 'Spam blocked', $stat_totals['6-months']->spam, 'akismet' ) ); ?>
[36] Fix | Delete
</li>
[37] Fix | Delete
<li>
[38] Fix | Delete
<h3><?php esc_html_e( 'All time' , 'akismet');?></h3>
[39] Fix | Delete
<span><?php echo number_format( $stat_totals['all']->spam );?></span>
[40] Fix | Delete
<?php echo esc_html( _n( 'Spam blocked', 'Spam blocked', $stat_totals['all']->spam, 'akismet' ) ); ?>
[41] Fix | Delete
</li>
[42] Fix | Delete
<li>
[43] Fix | Delete
<h3><?php esc_html_e( 'Accuracy' , 'akismet');?></h3>
[44] Fix | Delete
<span><?php echo floatval( $stat_totals['all']->accuracy ); ?>%</span>
[45] Fix | Delete
<?php printf( _n( '%s missed spam', '%s missed spam', $stat_totals['all']->missed_spam, 'akismet' ), number_format( $stat_totals['all']->missed_spam ) ); ?>
[46] Fix | Delete
|
[47] Fix | Delete
<?php printf( _n( '%s false positive', '%s false positives', $stat_totals['all']->false_positives, 'akismet' ), number_format( $stat_totals['all']->false_positives ) ); ?>
[48] Fix | Delete
</li>
[49] Fix | Delete
</ul>
[50] Fix | Delete
</div>
[51] Fix | Delete
</div>
[52] Fix | Delete
<?php endif;?>
[53] Fix | Delete
[54] Fix | Delete
<?php if ( $akismet_user ):?>
[55] Fix | Delete
<div class="akismet-card">
[56] Fix | Delete
<div class="akismet-section-header">
[57] Fix | Delete
<div class="akismet-section-header__label">
[58] Fix | Delete
<span><?php esc_html_e( 'Settings' , 'akismet'); ?></span>
[59] Fix | Delete
</div>
[60] Fix | Delete
</div>
[61] Fix | Delete
[62] Fix | Delete
<div class="inside">
[63] Fix | Delete
<form action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST">
[64] Fix | Delete
<table cellspacing="0" class="akismet-settings">
[65] Fix | Delete
<tbody>
[66] Fix | Delete
<?php if ( ! Akismet::predefined_api_key() ) { ?>
[67] Fix | Delete
<tr>
[68] Fix | Delete
<th class="akismet-api-key" width="10%" align="left" scope="row"><?php esc_html_e('API Key', 'akismet');?></th>
[69] Fix | Delete
<td width="5%"/>
[70] Fix | Delete
<td align="left">
[71] Fix | Delete
<span class="api-key"><input id="key" name="key" type="text" size="15" value="<?php echo esc_attr( get_option('wordpress_api_key') ); ?>" class="<?php echo esc_attr( 'regular-text code ' . $akismet_user->status ); ?>"></span>
[72] Fix | Delete
</td>
[73] Fix | Delete
</tr>
[74] Fix | Delete
<?php } ?>
[75] Fix | Delete
<?php if ( isset( $_GET['ssl_status'] ) ) { ?>
[76] Fix | Delete
<tr>
[77] Fix | Delete
<th align="left" scope="row"><?php esc_html_e( 'SSL Status', 'akismet' ); ?></th>
[78] Fix | Delete
<td></td>
[79] Fix | Delete
<td align="left">
[80] Fix | Delete
<p>
[81] Fix | Delete
<?php
[82] Fix | Delete
[83] Fix | Delete
if ( ! wp_http_supports( array( 'ssl' ) ) ) {
[84] Fix | Delete
?><b><?php esc_html_e( 'Disabled.', 'akismet' ); ?></b> <?php esc_html_e( 'Your Web server cannot make SSL requests; contact your Web host and ask them to add support for SSL requests.', 'akismet' ); ?><?php
[85] Fix | Delete
}
[86] Fix | Delete
else {
[87] Fix | Delete
$ssl_disabled = get_option( 'akismet_ssl_disabled' );
[88] Fix | Delete
[89] Fix | Delete
if ( $ssl_disabled ) {
[90] Fix | Delete
?><b><?php esc_html_e( 'Temporarily disabled.', 'akismet' ); ?></b> <?php esc_html_e( 'Akismet encountered a problem with a previous SSL request and disabled it temporarily. It will begin using SSL for requests again shortly.', 'akismet' ); ?><?php
[91] Fix | Delete
}
[92] Fix | Delete
else {
[93] Fix | Delete
?><b><?php esc_html_e( 'Enabled.', 'akismet' ); ?></b> <?php esc_html_e( 'All systems functional.', 'akismet' ); ?><?php
[94] Fix | Delete
}
[95] Fix | Delete
}
[96] Fix | Delete
[97] Fix | Delete
?>
[98] Fix | Delete
</p>
[99] Fix | Delete
</td>
[100] Fix | Delete
</tr>
[101] Fix | Delete
<?php } ?>
[102] Fix | Delete
<tr>
[103] Fix | Delete
<th align="left" scope="row"><?php esc_html_e('Comments', 'akismet');?></th>
[104] Fix | Delete
<td></td>
[105] Fix | Delete
<td align="left">
[106] Fix | Delete
<p>
[107] Fix | Delete
<label for="akismet_show_user_comments_approved" title="<?php esc_attr_e( 'Show approved comments' , 'akismet'); ?>">
[108] Fix | Delete
<input
[109] Fix | Delete
name="akismet_show_user_comments_approved"
[110] Fix | Delete
id="akismet_show_user_comments_approved"
[111] Fix | Delete
value="1"
[112] Fix | Delete
type="checkbox"
[113] Fix | Delete
<?php
[114] Fix | Delete
[115] Fix | Delete
// If the option isn't set, or if it's enabled ('1'), or if it was enabled a long time ago ('true'), check the checkbox.
[116] Fix | Delete
checked( true, ( in_array( get_option( 'akismet_show_user_comments_approved' ), array( false, '1', 'true' ), true ) ) );
[117] Fix | Delete
[118] Fix | Delete
?>
[119] Fix | Delete
/>
[120] Fix | Delete
<?php esc_html_e( 'Show the number of approved comments beside each comment author', 'akismet' ); ?>
[121] Fix | Delete
</label>
[122] Fix | Delete
</p>
[123] Fix | Delete
</td>
[124] Fix | Delete
</tr>
[125] Fix | Delete
<tr>
[126] Fix | Delete
<th class="strictness" align="left" scope="row"><?php esc_html_e('Strictness', 'akismet'); ?></th>
[127] Fix | Delete
<td></td>
[128] Fix | Delete
<td align="left">
[129] Fix | Delete
<fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Akismet anti-spam strictness', 'akismet'); ?></span></legend>
[130] Fix | Delete
<p><label for="akismet_strictness_1"><input type="radio" name="akismet_strictness" id="akismet_strictness_1" value="1" <?php checked('1', get_option('akismet_strictness')); ?> /> <?php esc_html_e('Silently discard the worst and most pervasive spam so I never see it.', 'akismet'); ?></label></p>
[131] Fix | Delete
<p><label for="akismet_strictness_0"><input type="radio" name="akismet_strictness" id="akismet_strictness_0" value="0" <?php checked('0', get_option('akismet_strictness')); ?> /> <?php esc_html_e('Always put spam in the Spam folder for review.', 'akismet'); ?></label></p>
[132] Fix | Delete
</fieldset>
[133] Fix | Delete
<span class="akismet-note"><strong><?php esc_html_e('Note:', 'akismet');?></strong>
[134] Fix | Delete
<?php
[135] Fix | Delete
[136] Fix | Delete
$delete_interval = max( 1, intval( apply_filters( 'akismet_delete_comment_interval', 15 ) ) );
[137] Fix | Delete
[138] Fix | Delete
printf(
[139] Fix | Delete
_n(
[140] Fix | Delete
'Spam in the <a href="%1$s">spam folder</a> older than 1 day is deleted automatically.',
[141] Fix | Delete
'Spam in the <a href="%1$s">spam folder</a> older than %2$d days is deleted automatically.',
[142] Fix | Delete
$delete_interval,
[143] Fix | Delete
'akismet'
[144] Fix | Delete
),
[145] Fix | Delete
admin_url( 'edit-comments.php?comment_status=spam' ),
[146] Fix | Delete
$delete_interval
[147] Fix | Delete
);
[148] Fix | Delete
[149] Fix | Delete
?>
[150] Fix | Delete
</td>
[151] Fix | Delete
</tr>
[152] Fix | Delete
<tr>
[153] Fix | Delete
<th class="comment-form-privacy-notice" align="left" scope="row"><?php esc_html_e('Privacy', 'akismet'); ?></th>
[154] Fix | Delete
<td></td>
[155] Fix | Delete
<td align="left">
[156] Fix | Delete
<fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Akismet privacy notice', 'akismet'); ?></span></legend>
[157] Fix | Delete
<p><label for="akismet_comment_form_privacy_notice_display"><input type="radio" name="akismet_comment_form_privacy_notice" id="akismet_comment_form_privacy_notice_display" value="display" <?php checked('display', get_option('akismet_comment_form_privacy_notice')); ?> /> <?php esc_html_e('Display a privacy notice under your comment forms.', 'akismet'); ?></label></p>
[158] Fix | Delete
<p><label for="akismet_comment_form_privacy_notice_hide"><input type="radio" name="akismet_comment_form_privacy_notice" id="akismet_comment_form_privacy_notice_hide" value="hide" <?php echo in_array( get_option('akismet_comment_form_privacy_notice'), array('display', 'hide') ) ? checked('hide', get_option('akismet_comment_form_privacy_notice'), false) : 'checked="checked"'; ?> /> <?php esc_html_e('Do not display privacy notice.', 'akismet'); ?></label></p>
[159] Fix | Delete
</fieldset>
[160] Fix | Delete
<span class="akismet-note"><?php esc_html_e( 'To help your site with transparency under privacy laws like the GDPR, Akismet can display a notice to your users under your comment forms. This feature is disabled by default, however, you can turn it on above.', 'akismet' );?></span>
[161] Fix | Delete
</td>
[162] Fix | Delete
</tr>
[163] Fix | Delete
</tbody>
[164] Fix | Delete
</table>
[165] Fix | Delete
<div class="akismet-card-actions">
[166] Fix | Delete
<?php if ( ! Akismet::predefined_api_key() ) { ?>
[167] Fix | Delete
<div id="delete-action">
[168] Fix | Delete
<a class="submitdelete deletion" href="<?php echo esc_url( Akismet_Admin::get_page_url( 'delete_key' ) ); ?>"><?php esc_html_e('Disconnect this account', 'akismet'); ?></a>
[169] Fix | Delete
</div>
[170] Fix | Delete
<?php } ?>
[171] Fix | Delete
<?php wp_nonce_field(Akismet_Admin::NONCE) ?>
[172] Fix | Delete
<div id="publishing-action">
[173] Fix | Delete
<input type="hidden" name="action" value="enter-key">
[174] Fix | Delete
<input type="submit" name="submit" id="submit" class="akismet-button akismet-could-be-primary" value="<?php esc_attr_e('Save Changes', 'akismet');?>">
[175] Fix | Delete
</div>
[176] Fix | Delete
<div class="clear"></div>
[177] Fix | Delete
</div>
[178] Fix | Delete
</form>
[179] Fix | Delete
</div>
[180] Fix | Delete
</div>
[181] Fix | Delete
[182] Fix | Delete
<?php if ( ! Akismet::predefined_api_key() ) { ?>
[183] Fix | Delete
<div class="akismet-card">
[184] Fix | Delete
<div class="akismet-section-header">
[185] Fix | Delete
<div class="akismet-section-header__label">
[186] Fix | Delete
<span><?php esc_html_e( 'Account' , 'akismet'); ?></span>
[187] Fix | Delete
</div>
[188] Fix | Delete
</div>
[189] Fix | Delete
[190] Fix | Delete
<div class="inside">
[191] Fix | Delete
<table cellspacing="0" border="0" class="akismet-settings">
[192] Fix | Delete
<tbody>
[193] Fix | Delete
<tr>
[194] Fix | Delete
<th scope="row" align="left"><?php esc_html_e( 'Subscription Type' , 'akismet');?></th>
[195] Fix | Delete
<td width="5%"/>
[196] Fix | Delete
<td align="left">
[197] Fix | Delete
<p><?php echo esc_html( $akismet_user->account_name ); ?></p>
[198] Fix | Delete
</td>
[199] Fix | Delete
</tr>
[200] Fix | Delete
<tr>
[201] Fix | Delete
<th scope="row" align="left"><?php esc_html_e( 'Status' , 'akismet');?></th>
[202] Fix | Delete
<td width="5%"/>
[203] Fix | Delete
<td align="left">
[204] Fix | Delete
<p><?php
[205] Fix | Delete
if ( 'cancelled' == $akismet_user->status ) :
[206] Fix | Delete
esc_html_e( 'Cancelled', 'akismet' );
[207] Fix | Delete
elseif ( 'suspended' == $akismet_user->status ) :
[208] Fix | Delete
esc_html_e( 'Suspended', 'akismet' );
[209] Fix | Delete
elseif ( 'missing' == $akismet_user->status ) :
[210] Fix | Delete
esc_html_e( 'Missing', 'akismet' );
[211] Fix | Delete
elseif ( 'no-sub' == $akismet_user->status ) :
[212] Fix | Delete
esc_html_e( 'No Subscription Found', 'akismet' );
[213] Fix | Delete
else :
[214] Fix | Delete
esc_html_e( 'Active', 'akismet' );
[215] Fix | Delete
endif; ?></p>
[216] Fix | Delete
</td>
[217] Fix | Delete
</tr>
[218] Fix | Delete
<?php if ( $akismet_user->next_billing_date ) : ?>
[219] Fix | Delete
<tr>
[220] Fix | Delete
<th scope="row" align="left"><?php esc_html_e( 'Next Billing Date' , 'akismet');?></th>
[221] Fix | Delete
<td width="5%"/>
[222] Fix | Delete
<td align="left">
[223] Fix | Delete
<p><?php echo date( 'F j, Y', $akismet_user->next_billing_date ); ?></p>
[224] Fix | Delete
</td>
[225] Fix | Delete
</tr>
[226] Fix | Delete
<?php endif; ?>
[227] Fix | Delete
</tbody>
[228] Fix | Delete
</table>
[229] Fix | Delete
<div class="akismet-card-actions">
[230] Fix | Delete
<div id="publishing-action">
[231] Fix | Delete
<?php Akismet::view( 'get', array( 'text' => ( $akismet_user->account_type == 'free-api-key' && $akismet_user->status == 'active' ? __( 'Upgrade' , 'akismet') : __( 'Change' , 'akismet') ), 'redirect' => 'upgrade' ) ); ?>
[232] Fix | Delete
</div>
[233] Fix | Delete
<div class="clear"></div>
[234] Fix | Delete
</div>
[235] Fix | Delete
</div>
[236] Fix | Delete
</div>
[237] Fix | Delete
<?php } ?>
[238] Fix | Delete
<?php endif;?>
[239] Fix | Delete
</div>
[240] Fix | Delete
</div>
[241] Fix | Delete
[242] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function