Edit File by line
/home/barbar84/www/wp-conte.../plugins/akismet_.../views
File: notice.php
<?php
[0] Fix | Delete
[1] Fix | Delete
//phpcs:disable VariableAnalysis
[2] Fix | Delete
// There are "undefined" variables here because they're defined in the code that includes this file as a template.
[3] Fix | Delete
[4] Fix | Delete
?>
[5] Fix | Delete
<?php if ( $type == 'plugin' ) :?>
[6] Fix | Delete
<div class="updated" id="akismet_setup_prompt">
[7] Fix | Delete
<form name="akismet_activate" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST">
[8] Fix | Delete
<div class="akismet_activate">
[9] Fix | Delete
<div class="aa_a">A</div>
[10] Fix | Delete
<div class="aa_button_container">
[11] Fix | Delete
<div class="aa_button_border">
[12] Fix | Delete
<input type="submit" class="aa_button" value="<?php esc_attr_e( 'Set up your Akismet account', 'akismet' ); ?>" />
[13] Fix | Delete
</div>
[14] Fix | Delete
</div>
[15] Fix | Delete
<div class="aa_description"><?php _e('<strong>Almost done</strong> - configure Akismet and say goodbye to spam', 'akismet');?></div>
[16] Fix | Delete
</div>
[17] Fix | Delete
</form>
[18] Fix | Delete
</div>
[19] Fix | Delete
<?php elseif ( $type == 'spam-check' ) :?>
[20] Fix | Delete
<div class="notice notice-warning">
[21] Fix | Delete
<p><strong><?php esc_html_e( 'Akismet has detected a problem.', 'akismet' );?></strong></p>
[22] Fix | Delete
<p><?php esc_html_e( 'Some comments have not yet been checked for spam by Akismet. They have been temporarily held for moderation and will automatically be rechecked later.', 'akismet' ); ?></p>
[23] Fix | Delete
<?php if ( $link_text ) { ?>
[24] Fix | Delete
<p><?php echo $link_text; ?></p>
[25] Fix | Delete
<?php } ?>
[26] Fix | Delete
</div>
[27] Fix | Delete
<?php elseif ( $type == 'alert' ) :?>
[28] Fix | Delete
<div class='error'>
[29] Fix | Delete
<p><strong><?php printf( esc_html__( 'Akismet Error Code: %s', 'akismet' ), $code ); ?></strong></p>
[30] Fix | Delete
<p><?php echo esc_html( $msg ); ?></p>
[31] Fix | Delete
<p><?php
[32] Fix | Delete
[33] Fix | Delete
/* translators: the placeholder is a clickable URL that leads to more information regarding an error code. */
[34] Fix | Delete
printf( esc_html__( 'For more information: %s' , 'akismet'), '<a href="https://akismet.com/errors/' . $code . '">https://akismet.com/errors/' . $code . '</a>' );
[35] Fix | Delete
[36] Fix | Delete
?>
[37] Fix | Delete
</p>
[38] Fix | Delete
</div>
[39] Fix | Delete
<?php elseif ( $type == 'notice' ) :?>
[40] Fix | Delete
<div class="akismet-alert akismet-critical">
[41] Fix | Delete
<h3 class="akismet-key-status failed"><?php echo $notice_header; ?></h3>
[42] Fix | Delete
<p class="akismet-description">
[43] Fix | Delete
<?php echo $notice_text; ?>
[44] Fix | Delete
</p>
[45] Fix | Delete
</div>
[46] Fix | Delete
<?php elseif ( $type == 'missing-functions' ) :?>
[47] Fix | Delete
<div class="akismet-alert akismet-critical">
[48] Fix | Delete
<h3 class="akismet-key-status failed"><?php esc_html_e('Network functions are disabled.', 'akismet'); ?></h3>
[49] Fix | Delete
<p class="akismet-description"><?php printf( __('Your web host or server administrator has disabled PHP&#8217;s <code>gethostbynamel</code> function. <strong>Akismet cannot work correctly until this is fixed.</strong> Please contact your web host or firewall administrator and give them <a href="%s" target="_blank">this information about Akismet&#8217;s system requirements</a>.', 'akismet'), 'https://blog.akismet.com/akismet-hosting-faq/'); ?></p>
[50] Fix | Delete
</div>
[51] Fix | Delete
<?php elseif ( $type == 'servers-be-down' ) :?>
[52] Fix | Delete
<div class="akismet-alert akismet-critical">
[53] Fix | Delete
<h3 class="akismet-key-status failed"><?php esc_html_e("Your site can&#8217;t connect to the Akismet servers.", 'akismet'); ?></h3>
[54] Fix | Delete
<p class="akismet-description"><?php printf( __('Your firewall may be blocking Akismet from connecting to its API. Please contact your host and refer to <a href="%s" target="_blank">our guide about firewalls</a>.', 'akismet'), 'https://blog.akismet.com/akismet-hosting-faq/'); ?></p>
[55] Fix | Delete
</div>
[56] Fix | Delete
<?php elseif ( $type == 'active-dunning' ) :?>
[57] Fix | Delete
<div class="akismet-alert akismet-critical">
[58] Fix | Delete
<h3 class="akismet-key-status"><?php esc_html_e("Please update your payment information.", 'akismet'); ?></h3>
[59] Fix | Delete
<p class="akismet-description"><?php printf( __('We cannot process your payment. Please <a href="%s" target="_blank">update your payment details</a>.', 'akismet'), 'https://akismet.com/account/'); ?></p>
[60] Fix | Delete
</div>
[61] Fix | Delete
<?php elseif ( $type == 'cancelled' ) :?>
[62] Fix | Delete
<div class="akismet-alert akismet-critical">
[63] Fix | Delete
<h3 class="akismet-key-status"><?php esc_html_e("Your Akismet plan has been cancelled.", 'akismet'); ?></h3>
[64] Fix | Delete
<p class="akismet-description"><?php printf( __('Please visit your <a href="%s" target="_blank">Akismet account page</a> to reactivate your subscription.', 'akismet'), 'https://akismet.com/account/'); ?></p>
[65] Fix | Delete
</div>
[66] Fix | Delete
<?php elseif ( $type == 'suspended' ) :?>
[67] Fix | Delete
<div class="akismet-alert akismet-critical">
[68] Fix | Delete
<h3 class="akismet-key-status failed"><?php esc_html_e("Your Akismet subscription is suspended.", 'akismet'); ?></h3>
[69] Fix | Delete
<p class="akismet-description"><?php printf( __('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet'), 'https://akismet.com/contact/'); ?></p>
[70] Fix | Delete
</div>
[71] Fix | Delete
<?php elseif ( $type == 'active-notice' && $time_saved ) :?>
[72] Fix | Delete
<div class="akismet-alert akismet-active">
[73] Fix | Delete
<h3 class="akismet-key-status"><?php echo esc_html( $time_saved ); ?></h3>
[74] Fix | Delete
<p class="akismet-description"><?php printf( __('You can help us fight spam and upgrade your account by <a href="%s" target="_blank">contributing a token amount</a>.', 'akismet'), 'https://akismet.com/account/upgrade/'); ?></p>
[75] Fix | Delete
</div>
[76] Fix | Delete
<?php elseif ( $type == 'missing' ) :?>
[77] Fix | Delete
<div class="akismet-alert akismet-critical">
[78] Fix | Delete
<h3 class="akismet-key-status failed"><?php esc_html_e( 'There is a problem with your API key.', 'akismet'); ?></h3>
[79] Fix | Delete
<p class="akismet-description"><?php printf( __('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet'), 'https://akismet.com/contact/'); ?></p>
[80] Fix | Delete
</div>
[81] Fix | Delete
<?php elseif ( $type == 'no-sub' ) :?>
[82] Fix | Delete
<div class="akismet-alert akismet-critical">
[83] Fix | Delete
<h3 class="akismet-key-status failed"><?php esc_html_e( 'You don&#8217;t have an Akismet plan.', 'akismet'); ?></h3>
[84] Fix | Delete
<p class="akismet-description">
[85] Fix | Delete
<?php printf( __( 'In 2012, Akismet began using subscription plans for all accounts (even free ones). A plan has not been assigned to your account, and we&#8217;d appreciate it if you&#8217;d <a href="%s" target="_blank">sign into your account</a> and choose one.', 'akismet'), 'https://akismet.com/account/upgrade/' ); ?>
[86] Fix | Delete
<br /><br />
[87] Fix | Delete
<?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/' ); ?>
[88] Fix | Delete
</p>
[89] Fix | Delete
</div>
[90] Fix | Delete
<?php elseif ( $type == 'new-key-valid' ) :
[91] Fix | Delete
global $wpdb;
[92] Fix | Delete
[93] Fix | Delete
$check_pending_link = false;
[94] Fix | Delete
[95] Fix | Delete
$at_least_one_comment_in_moderation = !! $wpdb->get_var( "SELECT comment_ID FROM {$wpdb->comments} WHERE comment_approved = '0' LIMIT 1" );
[96] Fix | Delete
[97] Fix | Delete
if ( $at_least_one_comment_in_moderation) {
[98] Fix | Delete
$check_pending_link = 'edit-comments.php?akismet_recheck=' . wp_create_nonce( 'akismet_recheck' );
[99] Fix | Delete
}
[100] Fix | Delete
[101] Fix | Delete
?>
[102] Fix | Delete
<div class="akismet-alert akismet-active">
[103] Fix | Delete
<h3 class="akismet-key-status"><?php esc_html_e( 'Akismet is now protecting your site from spam. Happy blogging!', 'akismet' ); ?></h3>
[104] Fix | Delete
<?php if ( $check_pending_link ) { ?>
[105] Fix | Delete
<p class="akismet-description"><?php printf( __( 'Would you like to <a href="%s">check pending comments</a>?', 'akismet' ), esc_url( $check_pending_link ) ); ?></p>
[106] Fix | Delete
<?php } ?>
[107] Fix | Delete
</div>
[108] Fix | Delete
<?php elseif ( $type == 'new-key-invalid' ) :?>
[109] Fix | Delete
<div class="akismet-alert akismet-critical">
[110] Fix | Delete
<h3 class="akismet-key-status"><?php esc_html_e( 'The key you entered is invalid. Please double-check it.' , 'akismet'); ?></h3>
[111] Fix | Delete
</div>
[112] Fix | Delete
<?php elseif ( $type == 'existing-key-invalid' ) :?>
[113] Fix | Delete
<div class="akismet-alert akismet-critical">
[114] Fix | Delete
<h3 class="akismet-key-status"><?php esc_html_e( 'Your API key is no longer valid. Please enter a new key or contact support@akismet.com.' , 'akismet'); ?></h3>
[115] Fix | Delete
</div>
[116] Fix | Delete
<?php elseif ( $type == 'new-key-failed' ) :?>
[117] Fix | Delete
<div class="akismet-alert akismet-critical">
[118] Fix | Delete
<h3 class="akismet-key-status"><?php esc_html_e( 'The API key you entered could not be verified.' , 'akismet'); ?></h3>
[119] Fix | Delete
<p class="akismet-description"><?php printf( __('The connection to akismet.com could not be established. Please refer to <a href="%s" target="_blank">our guide about firewalls</a> and check your server configuration.', 'akismet'), 'https://blog.akismet.com/akismet-hosting-faq/'); ?></p>
[120] Fix | Delete
</div>
[121] Fix | Delete
<?php elseif ( $type == 'limit-reached' && in_array( $level, array( 'yellow', 'red' ) ) ) :?>
[122] Fix | Delete
<div class="akismet-alert akismet-critical">
[123] Fix | Delete
<?php if ( $level == 'yellow' ): ?>
[124] Fix | Delete
<h3 class="akismet-key-status failed"><?php esc_html_e( 'You&#8217;re using your Akismet key on more sites than your Pro subscription allows.', 'akismet' ); ?></h3>
[125] Fix | Delete
<p class="akismet-description">
[126] Fix | Delete
<?php printf( __( 'Your Pro subscription allows the use of Akismet on only one site. Please <a href="%s" target="_blank">purchase additional Pro subscriptions</a> or upgrade to an Enterprise subscription that allows the use of Akismet on unlimited sites.', 'akismet' ), 'https://docs.akismet.com/billing/add-more-sites/' ); ?>
[127] Fix | Delete
<br /><br />
[128] Fix | Delete
<?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/'); ?>
[129] Fix | Delete
</p>
[130] Fix | Delete
<?php elseif ( $level == 'red' ): ?>
[131] Fix | Delete
<h3 class="akismet-key-status failed"><?php esc_html_e( 'You&#8217;re using Akismet on far too many sites for your Pro subscription.', 'akismet' ); ?></h3>
[132] Fix | Delete
<p class="akismet-description">
[133] Fix | Delete
<?php printf( __( 'To continue your service, <a href="%s" target="_blank">upgrade to an Enterprise subscription</a>, which covers an unlimited number of sites.', 'akismet'), 'https://akismet.com/account/upgrade/' ); ?>
[134] Fix | Delete
<br /><br />
[135] Fix | Delete
<?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/'); ?>
[136] Fix | Delete
</p>
[137] Fix | Delete
<?php endif; ?>
[138] Fix | Delete
</div>
[139] Fix | Delete
<?php endif;?>
[140] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function