.
esc_attr( remove_query_arg( array
( 'akismet_recheck', 'akismet_recheck_complete'
),
add_query_arg( array
( 'akismet_recheck_error' => 1
) ) ) ) . '"
data-pending-comment-count="' .
esc_attr( $comments_count->moderated
) . '"
data-nonce="' .
esc_attr( wp_create_nonce( 'akismet_check_for_spam'
) ) . '"
' .
( !
in_array( 'ajax-disabled',
$classes ) ? 'onclick="return false;"' : ''
) . '
>' .
esc_html__('Check for Spam', 'akismet'
) . '</a>';
echo '<span class="checkforspam-spinner"></span>';
} public static function recheck_queue() { global $wpdb;
Akismet::
fix_scheduled_recheck();
if ( !
( isset( $_GET['recheckqueue'
] ) || ( isset( $_REQUEST['action'
] ) && 'akismet_recheck_queue' ==
$_REQUEST['action'
] ) ) ) { return;
} if ( !
wp_verify_nonce( $_POST['nonce'
], 'akismet_check_for_spam'
) ) { wp_send_json( array
( 'error' =>
__( 'You don’t have permission to do that.', 'akismet'
),
));
return;
}