-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathzero-spam.php
More file actions
54 lines (43 loc) · 1.79 KB
/
zero-spam.php
File metadata and controls
54 lines (43 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Plugin Name: WordPress Zero Spam
* Plugin URI: http://www.benmarshall.me/wordpress-zero-spam-plugin
* Description: Tired of all the useless and bloated WordPress spam plugins? The WordPress Zero Spam plugin makes blocking spam a cinch. <strong>Just install, activate and say goodbye to spam.</strong> Based on work by <a href="http://davidwalsh.name/wordpress-comment-spam" target="_blank">David Walsh</a>.
* Version: 1.5.3
* Author: Ben Marshall
* Author URI: http://www.benmarshall.me
* License: GPL2
*/
/* Copyright 2014 Ben Marshall (email : me@benmarshall.me)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* Security Note: Blocks direct access to the plugin PHP files.
*/
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
// Define constants.
if( ! defined( 'ZEROSPAM_ROOT ' ) ) {
define( 'ZEROSPAM_ROOT', plugin_dir_path( __FILE__ ) );
}
if( ! defined( 'ZEROSPAM_PLUGIN ' ) ) {
define( 'ZEROSPAM_PLUGIN', __FILE__ );
}
/**
* Used to detect installed plugins.
*/
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
/**
* Include the Zero Spam class.
*/
require_once( ZEROSPAM_ROOT . 'lib/zero-spam.class.php' );
// Initialize the Zero Spam class.
$zero_spam = Zero_Spam::get_instance();