-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgf-spam-phrases.php
51 lines (42 loc) · 1.67 KB
/
gf-spam-phrases.php
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
<?php
/*
Plugin Name: Gravity Forms Spam Phrases
Plugin URI:
Update URI: gf-spam-phrases
Description: Create a list of spammy phrases to blocklist Gravity Forms entries as spam
Version: 1.1.1
Author: WebAware
Author URI: https://shop.webaware.com.au/
Text Domain: gf-spam-phrases
Domain Path: /languages/
*/
/*
copyright (c) 2021-2024 WebAware Pty Ltd (email : support@webaware.com.au)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
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 Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
if (!defined('ABSPATH')) {
exit;
}
// phpcs:disable Modernize.FunctionCalls.Dirname.FileConstant
define('GF_SPAMMY_FILE', __FILE__);
define('GF_SPAMMY_ROOT', dirname(__FILE__) . '/');
define('GF_SPAMMY_NAME', basename(dirname(__FILE__)) . '/' . basename(__FILE__));
define('GF_SPAMMY_MIN_PHP', '7.4');
define('GF_SPAMMY_VERSION', '1.1.1');
require GF_SPAMMY_ROOT . 'includes/functions-global.php';
require GF_SPAMMY_ROOT . 'includes/class.Requires.php';
if (version_compare(PHP_VERSION, GF_SPAMMY_MIN_PHP, '<')) {
add_action('admin_notices', 'gf_spammy_fail_php_version');
return;
}
require GF_SPAMMY_ROOT . 'includes/bootstrap.php';