wp/wp-content/plugins/akismet/akismet.php
author ymh <ymh.work@gmail.com>
Tue, 09 Jun 2015 03:35:32 +0200
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
permissions -rw-r--r--
upgrade wordpress + plugins
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
/*
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
Plugin Name: Akismet
5
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
     7
Plugin URI: http://akismet.com/
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
     8
Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from comment and trackback spam</strong>. It keeps your site protected from spam even while you sleep. To get started: 1) Click the "Activate" link to the left of this description, 2) <a href="http://akismet.com/get/">Sign up for an Akismet API key</a>, and 3) Go to your Akismet configuration page, and save your API key.
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
     9
Version: 3.1.2
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
Author: Automattic
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
Author URI: http://automattic.com/wordpress-plugins/
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.
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
*/
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
// Make sure we don't expose any info if called directly
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
if ( !function_exists( 'add_action' ) ) {
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
	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
    35
	exit;
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
5
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    38
define( 'AKISMET_VERSION', '3.1.2' );
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    39
define( 'AKISMET__MINIMUM_WP_VERSION', '3.2' );
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    40
define( 'AKISMET__PLUGIN_URL', plugin_dir_url( __FILE__ ) );
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    41
define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    42
define( 'AKISMET_DELETE_LIMIT', 100000 );
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
5
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    44
register_activation_hook( __FILE__, array( 'Akismet', 'plugin_activation' ) );
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    45
register_deactivation_hook( __FILE__, array( 'Akismet', 'plugin_deactivation' ) );
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
5
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    47
require_once( AKISMET__PLUGIN_DIR . 'class.akismet.php' );
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    48
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-widget.php' );
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    49
5
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    50
add_action( 'init', array( 'Akismet', 'init' ) );
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
if ( is_admin() ) {
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    53
	require_once( AKISMET__PLUGIN_DIR . 'class.akismet-admin.php' );
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    54
	add_action( 'init', array( 'Akismet_Admin', 'init' ) );
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
}
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
5
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    57
//add wrapper class around deprecated akismet functions that are referenced elsewhere
5e2f62d02dcd upgrade wordpress + plugins
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    58
require_once( AKISMET__PLUGIN_DIR . 'wrapper.php' );
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59