wp/wp-content/plugins/akismet/akismet.php
author ymh <ymh.work@gmail.com>
Tue, 22 Oct 2019 16:11:46 +0200
changeset 15 3d4e9c994f10
parent 9 177826044cd9
permissions -rw-r--r--
Upgrade jquery-ui in in-motion theme version from 1.8.14 to 1.8.22 to avoid 'a.curCSS is not a function' errors in console that caused problems with circles and navigation.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
/**
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
 * @package Akismet
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
 */
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
/*
7
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
     6
Plugin Name: Akismet Anti-Spam
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
     7
Plugin URI: https://akismet.com/
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
     8
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.
9
177826044cd9 upgrade wordpress to 5.2.3
ymh <ymh.work@gmail.com>
parents: 7
diff changeset
     9
Version: 4.1.2
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
Author: Automattic
7
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    11
Author URI: https://automattic.com/wordpress-plugins/
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
License: GPLv2 or later
5
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    13
Text Domain: akismet
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
*/
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
/*
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
This program is free software; you can redistribute it and/or
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
modify it under the terms of the GNU General Public License
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
as published by the Free Software Foundation; either version 2
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
of the License, or (at your option) any later version.
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
This program is distributed in the hope that it will be useful,
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
but WITHOUT ANY WARRANTY; without even the implied warranty of
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
GNU General Public License for more details.
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
You should have received a copy of the GNU General Public License
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
along with this program; if not, write to the Free Software
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
7
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    30
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    31
Copyright 2005-2015 Automattic, Inc.
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
*/
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
// Make sure we don't expose any info if called directly
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
if ( !function_exists( 'add_action' ) ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
	echo 'Hi there!  I\'m just a plugin, not much I can do when called directly.';
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
	exit;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
9
177826044cd9 upgrade wordpress to 5.2.3
ymh <ymh.work@gmail.com>
parents: 7
diff changeset
    40
define( 'AKISMET_VERSION', '4.1.2' );
7
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    41
define( 'AKISMET__MINIMUM_WP_VERSION', '4.0' );
5
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    42
define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    43
define( 'AKISMET_DELETE_LIMIT', 100000 );
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
5
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    45
register_activation_hook( __FILE__, array( 'Akismet', 'plugin_activation' ) );
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    46
register_deactivation_hook( __FILE__, array( 'Akismet', 'plugin_deactivation' ) );
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    47
5
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    48
require_once( AKISMET__PLUGIN_DIR . 'class.akismet.php' );
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    49
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-widget.php' );
7
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    50
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-rest-api.php' );
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
5
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    52
add_action( 'init', array( 'Akismet', 'init' ) );
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
7
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    54
add_action( 'rest_api_init', array( 'Akismet_REST_API', 'init' ) );
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    55
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    56
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
5
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    57
	require_once( AKISMET__PLUGIN_DIR . 'class.akismet-admin.php' );
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    58
	add_action( 'init', array( 'Akismet_Admin', 'init' ) );
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    60
5
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    61
//add wrapper class around deprecated akismet functions that are referenced elsewhere
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    62
require_once( AKISMET__PLUGIN_DIR . 'wrapper.php' );
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    63
7
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    64
if ( defined( 'WP_CLI' ) && WP_CLI ) {
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    65
	require_once( AKISMET__PLUGIN_DIR . 'class.akismet-cli.php' );
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents: 5
diff changeset
    66
}