Edit File by line
/home/barbar84/www/wp-conte.../plugins/akismet_...
File: akismet.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* @package Akismet
[2] Fix | Delete
*/
[3] Fix | Delete
/*
[4] Fix | Delete
Plugin Name: Akismet Anti-Spam-Beta
[5] Fix | Delete
Plugin URI: https://akismet.com/
[6] Fix | Delete
Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.
[7] Fix | Delete
Version: 4.1.7a2
[8] Fix | Delete
Author: Automattic
[9] Fix | Delete
Author URI: https://automattic.com/wordpress-plugins/
[10] Fix | Delete
License: GPLv2 or later
[11] Fix | Delete
Text Domain: akismet
[12] Fix | Delete
*/
[13] Fix | Delete
[14] Fix | Delete
/*
[15] Fix | Delete
This program is free software; you can redistribute it and/or
[16] Fix | Delete
modify it under the terms of the GNU General Public License
[17] Fix | Delete
as published by the Free Software Foundation; either version 2
[18] Fix | Delete
of the License, or (at your option) any later version.
[19] Fix | Delete
[20] Fix | Delete
This program is distributed in the hope that it will be useful,
[21] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[22] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[23] Fix | Delete
GNU General Public License for more details.
[24] Fix | Delete
[25] Fix | Delete
You should have received a copy of the GNU General Public License
[26] Fix | Delete
along with this program; if not, write to the Free Software
[27] Fix | Delete
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
[28] Fix | Delete
[29] Fix | Delete
Copyright 2005-2015 Automattic, Inc.
[30] Fix | Delete
*/
[31] Fix | Delete
[32] Fix | Delete
// Make sure we don't expose any info if called directly
[33] Fix | Delete
if ( !function_exists( 'add_action' ) ) {
[34] Fix | Delete
echo 'Hi there! I\'m just a plugin, not much I can do when called directly.';
[35] Fix | Delete
exit;
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
define( 'AKISMET_VERSION', '4.1.7a1' );
[39] Fix | Delete
define( 'AKISMET__MINIMUM_WP_VERSION', '4.0' );
[40] Fix | Delete
define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
[41] Fix | Delete
define( 'AKISMET_DELETE_LIMIT', 100000 );
[42] Fix | Delete
[43] Fix | Delete
register_activation_hook( __FILE__, array( 'Akismet', 'plugin_activation' ) );
[44] Fix | Delete
register_deactivation_hook( __FILE__, array( 'Akismet', 'plugin_deactivation' ) );
[45] Fix | Delete
[46] Fix | Delete
require_once( AKISMET__PLUGIN_DIR . 'class.akismet.php' );
[47] Fix | Delete
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-widget.php' );
[48] Fix | Delete
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-rest-api.php' );
[49] Fix | Delete
[50] Fix | Delete
add_action( 'init', array( 'Akismet', 'init' ) );
[51] Fix | Delete
[52] Fix | Delete
add_action( 'rest_api_init', array( 'Akismet_REST_API', 'init' ) );
[53] Fix | Delete
[54] Fix | Delete
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
[55] Fix | Delete
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-admin.php' );
[56] Fix | Delete
add_action( 'init', array( 'Akismet_Admin', 'init' ) );
[57] Fix | Delete
}
[58] Fix | Delete
[59] Fix | Delete
//add wrapper class around deprecated akismet functions that are referenced elsewhere
[60] Fix | Delete
require_once( AKISMET__PLUGIN_DIR . 'wrapper.php' );
[61] Fix | Delete
[62] Fix | Delete
if ( defined( 'WP_CLI' ) && WP_CLI ) {
[63] Fix | Delete
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-cli.php' );
[64] Fix | Delete
}
[65] Fix | Delete
[66] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function