0
|
1 |
<?php |
|
2 |
/** |
|
3 |
* @package Akismet |
|
4 |
*/ |
|
5 |
/* |
|
6 |
Plugin Name: Akismet |
5
|
7 |
Plugin URI: http://akismet.com/ |
|
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. |
|
9 |
Version: 3.1.2 |
0
|
10 |
Author: Automattic |
|
11 |
Author URI: http://automattic.com/wordpress-plugins/ |
|
12 |
License: GPLv2 or later |
5
|
13 |
Text Domain: akismet |
0
|
14 |
*/ |
|
15 |
|
|
16 |
/* |
|
17 |
This program is free software; you can redistribute it and/or |
|
18 |
modify it under the terms of the GNU General Public License |
|
19 |
as published by the Free Software Foundation; either version 2 |
|
20 |
of the License, or (at your option) any later version. |
|
21 |
|
|
22 |
This program is distributed in the hope that it will be useful, |
|
23 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
24 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
25 |
GNU General Public License for more details. |
|
26 |
|
|
27 |
You should have received a copy of the GNU General Public License |
|
28 |
along with this program; if not, write to the Free Software |
|
29 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
30 |
*/ |
|
31 |
|
|
32 |
// Make sure we don't expose any info if called directly |
|
33 |
if ( !function_exists( 'add_action' ) ) { |
|
34 |
echo 'Hi there! I\'m just a plugin, not much I can do when called directly.'; |
|
35 |
exit; |
|
36 |
} |
|
37 |
|
5
|
38 |
define( 'AKISMET_VERSION', '3.1.2' ); |
|
39 |
define( 'AKISMET__MINIMUM_WP_VERSION', '3.2' ); |
|
40 |
define( 'AKISMET__PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
|
41 |
define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); |
|
42 |
define( 'AKISMET_DELETE_LIMIT', 100000 ); |
0
|
43 |
|
5
|
44 |
register_activation_hook( __FILE__, array( 'Akismet', 'plugin_activation' ) ); |
|
45 |
register_deactivation_hook( __FILE__, array( 'Akismet', 'plugin_deactivation' ) ); |
0
|
46 |
|
5
|
47 |
require_once( AKISMET__PLUGIN_DIR . 'class.akismet.php' ); |
|
48 |
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-widget.php' ); |
0
|
49 |
|
5
|
50 |
add_action( 'init', array( 'Akismet', 'init' ) ); |
0
|
51 |
|
5
|
52 |
if ( is_admin() ) { |
|
53 |
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-admin.php' ); |
|
54 |
add_action( 'init', array( 'Akismet_Admin', 'init' ) ); |
0
|
55 |
} |
|
56 |
|
5
|
57 |
//add wrapper class around deprecated akismet functions that are referenced elsewhere |
|
58 |
require_once( AKISMET__PLUGIN_DIR . 'wrapper.php' ); |
0
|
59 |
|