WP fail2ban - Version 4.3.0.7

Version Description

  • Finish refactoring to allow inclusion of constants in wp-config.php (h/t @iCounsellor).
  • Fix MaxMind database update. [Premium only]
Download this release

Release Info

Developer invisnet
Plugin Icon 128x128 WP fail2ban
Version 4.3.0.7
Comparing to
See all releases

Code changes from version 4.3.0.6 to 4.3.0.7

constants.php CHANGED
@@ -13,7 +13,7 @@ namespace org\lecklider\charles\wordpress\wp_fail2ban;
13
  // @codeCoverageIgnoreStart
14
 
15
  if (!defined('WP_FAIL2BAN_VER')) {
16
- define('WP_FAIL2BAN_VER', '4.3.0.6');
17
  }
18
  if (!defined('WP_FAIL2BAN_VER_SHORT')) {
19
  define('WP_FAIL2BAN_VER_SHORT', '4.3');
13
  // @codeCoverageIgnoreStart
14
 
15
  if (!defined('WP_FAIL2BAN_VER')) {
16
+ define('WP_FAIL2BAN_VER', '4.3.0.7');
17
  }
18
  if (!defined('WP_FAIL2BAN_VER_SHORT')) {
19
  define('WP_FAIL2BAN_VER_SHORT', '4.3');
filters.d/wordpress-extra.conf CHANGED
@@ -1,5 +1,5 @@
1
  # Fail2Ban filter for WordPress extra failures
2
- # Auto-generated: 2020-08-04T12:35:21+00:00
3
  #
4
 
5
  [INCLUDES]
1
  # Fail2Ban filter for WordPress extra failures
2
+ # Auto-generated: 2020-08-15T14:54:36+00:00
3
  #
4
 
5
  [INCLUDES]
filters.d/wordpress-hard.conf CHANGED
@@ -1,5 +1,5 @@
1
  # Fail2Ban filter for WordPress hard failures
2
- # Auto-generated: 2020-08-04T12:35:21+00:00
3
  #
4
 
5
  [INCLUDES]
1
  # Fail2Ban filter for WordPress hard failures
2
+ # Auto-generated: 2020-08-15T14:54:36+00:00
3
  #
4
 
5
  [INCLUDES]
filters.d/wordpress-soft.conf CHANGED
@@ -1,5 +1,5 @@
1
  # Fail2Ban filter for WordPress soft failures
2
- # Auto-generated: 2020-08-04T12:35:21+00:00
3
  #
4
 
5
  [INCLUDES]
1
  # Fail2Ban filter for WordPress soft failures
2
+ # Auto-generated: 2020-08-15T14:54:36+00:00
3
  #
4
 
5
  [INCLUDES]
lib/constants.php CHANGED
@@ -7,154 +7,163 @@
7
  */
8
  namespace org\lecklider\charles\wordpress\wp_fail2ban;
9
 
 
 
10
  defined('ABSPATH') or exit;
11
 
 
 
12
  /**
13
- * Init constants
14
- *
15
- * @since 4.3.0 Refactored
16
- *
17
- * @return void
18
- */
19
- function init_constants()
20
- {
21
- // phpcs:disable Generic.Functions.FunctionCallArgumentSpacing
22
- /*
23
- 31 | Test
24
- 30 | Plugin
25
- 29 |
26
- 28 |
27
- 27 |
28
- 26 |
29
- 25 |
30
- 24 |
31
- ---
32
- 23 | Event Class
33
- 22 | ..
34
- 21 | ..
35
- 20 | ..
36
- 19 | ..
37
- 18 | ..
38
- 17 | ..
39
- 16 | ..
40
- ---
41
- 15 | ID
42
- 14 | ..
43
- 13 | ..
44
- 12 | ..
45
- 11 | ..
46
- 10 | ..
47
- 09 | ..
48
- 08 | ..
49
- ---
50
- 07 | ..
51
- 06 | ..
52
- 05 | ..
53
- 04 | ..
54
- 03 | ..
55
- 02 | ..
56
- 01 | Failure
57
- 00 | Success
58
- */
59
-
60
- define('WPF2B_EVENT_A', 0x0004);
61
- define('WPF2B_EVENT_B', 0x0008);
62
- define('WPF2B_EVENT_C', 0x0010);
63
- define('WPF2B_EVENT_D', 0x0020);
64
- define('WPF2B_EVENT_E', 0x0040);
65
- define('WPF2B_EVENT_F', 0x0080);
66
- define('WPF2B_EVENT_G', 0x0100);
67
- define('WPF2B_EVENT_H', 0x0200);
68
- define('WPF2B_EVENT_I', 0x0400);
69
- define('WPF2B_EVENT_J', 0x0800);
70
- define('WPF2B_EVENT_K', 0x1000);
71
- define('WPF2B_EVENT_L', 0x2000);
72
- define('WPF2B_EVENT_M', 0x4000);
73
- define('WPF2B_EVENT_N', 0x8000);
74
 
75
- define('WPF2B_EVENT_CLASS_AUTH', 0x00010000);
76
- define('WPF2B_EVENT_CLASS_COMMENT', 0x00020000);
77
- define('WPF2B_EVENT_CLASS_XMLRPC', 0x00040000);
78
- define('WPF2B_EVENT_CLASS_PASSWORD', 0x00080000);
79
- define('WPF2B_EVENT_CLASS_REST', 0x00100000); /** @since 4.1.0 */
80
- define('WPF2B_EVENT_CLASS_SPAM', 0x00200000); /** @since 4.2.0 */
81
- define('WPF2B_EVENT_CLASS_BLOCK', 0x00400000); /** @since 4.3.0 */
82
- define('WPF2B_EVENT_TYPE_PLUGIN', 0x40000000); /** @since 4.2.0 */
83
- define('WPF2B_EVENT_TYPE_TEST', 0x80000000); /** @since 4.2.0 */
84
- define('WPF2B_EVENT_SUCCESS', 0x00000001); /** @since 4.3.0 */
85
- define('WPF2B_EVENT_FAILURE', 0x00000002); /** @since 4.3.0 */
 
 
 
 
86
 
 
 
 
 
 
 
 
 
 
 
 
87
 
88
- /**
89
- *
90
- */
91
- define('WPF2B_EVENT_ACTIVATED', 0xffffffff);
92
 
 
 
 
 
 
 
93
 
94
- /**
95
- * Auth
96
- */
97
- define('WPF2B_EVENT_AUTH_OK', WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_SUCCESS);
98
- define('WPF2B_EVENT_AUTH_FAIL', WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_FAILURE);
99
- define('WPF2B_EVENT_AUTH_BLOCK_USER', WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_CLASS_BLOCK | WPF2B_EVENT_A);
100
- define('WPF2B_EVENT_AUTH_BLOCK_USER_ENUM', WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_CLASS_BLOCK | WPF2B_EVENT_B);
101
- define('WPF2B_EVENT_AUTH_EMPTY_USER', WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_FAILURE | WPF2B_EVENT_C);
102
- define('WPF2B_EVENT_AUTH_BLOCK_USERNAME_LOGIN', WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_CLASS_BLOCK | WPF2B_EVENT_D); /** @since 4.3.0 */
 
 
103
 
104
- /**
105
- * Comment
106
- */
107
- define('WPF2B_EVENT_COMMENT', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_SUCCESS);
108
- define('WPF2B_EVENT_COMMENT_SPAM', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_CLASS_SPAM);
109
- // comment extra
110
- define('WPF2B_EVENT_COMMENT_NOT_FOUND', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_FAILURE | WPF2B_EVENT_A);
111
- define('WPF2B_EVENT_COMMENT_CLOSED', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_FAILURE | WPF2B_EVENT_B);
112
- define('WPF2B_EVENT_COMMENT_TRASH', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_FAILURE | WPF2B_EVENT_C);
113
- define('WPF2B_EVENT_COMMENT_DRAFT', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_FAILURE | WPF2B_EVENT_D);
114
- define('WPF2B_EVENT_COMMENT_PASSWORD', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_CLASS_PASSWORD | WPF2B_EVENT_FAILURE | WPF2B_EVENT_E);
 
 
115
 
116
- /**
117
- * XML-RPC
118
- */
119
- define('WPF2B_EVENT_XMLRPC_PINGBACK', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_SUCCESS | WPF2B_EVENT_A);
120
- define('WPF2B_EVENT_XMLRPC_PINGBACK_ERROR', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_FAILURE | WPF2B_EVENT_A);
121
- define('WPF2B_EVENT_XMLRPC_MULTI_AUTH_FAIL', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_FAILURE | WPF2B_EVENT_B);
122
- define('WPF2B_EVENT_XMLRPC_AUTH_OK', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_SUCCESS);
123
- define('WPF2B_EVENT_XMLRPC_AUTH_FAIL', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_FAILURE);
 
 
124
 
125
- /**
126
- * Password
127
- */
128
- define('WPF2B_EVENT_PASSWORD_REQUEST', WPF2B_EVENT_CLASS_PASSWORD | WPF2B_EVENT_SUCCESS);
 
 
129
 
130
- /**
131
- * REST
132
- * @since 4.1.0
133
- */
134
- define('WPF2B_EVENT_REST_AUTH_OK', WPF2B_EVENT_CLASS_REST | WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_SUCCESS);
135
- define('WPF2B_EVENT_REST_AUTH_FAIL', WPF2B_EVENT_CLASS_REST | WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_FAILURE);
 
 
136
 
137
- /**
138
- *
139
- */
140
- define('WPF2B_EVENT_DEACTIVATED', 0x00000000);
 
 
141
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
 
143
- /**
144
- * @deprecated 4.3.0
145
- */
146
- define('WPF2B_EVENT_AUTH_BLOCK_USER__', WPF2B_EVENT_CLASS_AUTH | 0x0004); /** @deprecated 4.3.0 */
147
- define('WPF2B_EVENT_AUTH_BLOCK_USER_ENUM__', WPF2B_EVENT_CLASS_AUTH | 0x0008); /** @deprecated 4.3.0 */
148
- define('WPF2B_EVENT_COMMENT_SPAM__', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_CLASS_SPAM | 0x0001); /** @deprecated 4.3.0 */
149
- define('WPF2B_EVENT_COMMENT_NOT_FOUND__', WPF2B_EVENT_CLASS_COMMENT | 0x0002); /** @deprecated 4.3.0 */
150
- define('WPF2B_EVENT_COMMENT_CLOSED__', WPF2B_EVENT_CLASS_COMMENT | 0x0004); /** @deprecated 4.3.0 */
151
- define('WPF2B_EVENT_COMMENT_TRASH__', WPF2B_EVENT_CLASS_COMMENT | 0x0010); /** @deprecated 4.3.0 */
152
- define('WPF2B_EVENT_COMMENT_DRAFT__', WPF2B_EVENT_CLASS_COMMENT | 0x0010); /** @deprecated 4.3.0 */
153
- define('WPF2B_EVENT_COMMENT_PASSWORD__', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_CLASS_PASSWORD | 0x0020); /** @deprecated 4.3.0 */
154
- define('WPF2B_EVENT_XMLRPC_PINGBACK__', WPF2B_EVENT_CLASS_XMLRPC | 0x0001);
155
- define('WPF2B_EVENT_XMLRPC_PINGBACK_ERROR__', WPF2B_EVENT_CLASS_XMLRPC | 0x0002);
156
- define('WPF2B_EVENT_XMLRPC_MULTI_AUTH_FAIL__', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_CLASS_AUTH | 0x0004); /** @deprecated 4.3.0 */
157
- define('WPF2B_EVENT_XMLRPC_AUTH_OK__', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_CLASS_AUTH | 0x0008); /** @deprecated 4.3.0 */
158
- define('WPF2B_EVENT_XMLRPC_AUTH_FAIL__', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_CLASS_AUTH | 0x0010); /** @deprecated 4.3.0 */
159
- // phpcs:enable
160
- }
7
  */
8
  namespace org\lecklider\charles\wordpress\wp_fail2ban;
9
 
10
+ // @codeCoverageIgnoreStart
11
+
12
  defined('ABSPATH') or exit;
13
 
14
+ // phpcs:disable Generic.Functions.FunctionCallArgumentSpacing
15
+ // @codeCoverageIgnore
16
  /**
17
+ 31 | Test
18
+ 30 | Plugin
19
+ 29 |
20
+ 28 |
21
+ 27 |
22
+ 26 |
23
+ 25 |
24
+ 24 |
25
+ ---
26
+ 23 | Event Class
27
+ 22 | ..
28
+ 21 | ..
29
+ 20 | ..
30
+ 19 | ..
31
+ 18 | ..
32
+ 17 | ..
33
+ 16 | ..
34
+ ---
35
+ 15 | ID
36
+ 14 | ..
37
+ 13 | ..
38
+ 12 | ..
39
+ 11 | ..
40
+ 10 | ..
41
+ 09 | ..
42
+ 08 | ..
43
+ ---
44
+ 07 | ..
45
+ 06 | ..
46
+ 05 | ..
47
+ 04 | ..
48
+ 03 | ..
49
+ 02 | ..
50
+ 01 | Failure
51
+ 00 | Success
52
+ */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
 
54
+ // @codeCoverageIgnoreStart
55
+ define('WPF2B_EVENT_A', 0x0004);
56
+ define('WPF2B_EVENT_B', 0x0008);
57
+ define('WPF2B_EVENT_C', 0x0010);
58
+ define('WPF2B_EVENT_D', 0x0020);
59
+ define('WPF2B_EVENT_E', 0x0040);
60
+ define('WPF2B_EVENT_F', 0x0080);
61
+ define('WPF2B_EVENT_G', 0x0100);
62
+ define('WPF2B_EVENT_H', 0x0200);
63
+ define('WPF2B_EVENT_I', 0x0400);
64
+ define('WPF2B_EVENT_J', 0x0800);
65
+ define('WPF2B_EVENT_K', 0x1000);
66
+ define('WPF2B_EVENT_L', 0x2000);
67
+ define('WPF2B_EVENT_M', 0x4000);
68
+ define('WPF2B_EVENT_N', 0x8000);
69
 
70
+ define('WPF2B_EVENT_CLASS_AUTH', 0x00010000);
71
+ define('WPF2B_EVENT_CLASS_COMMENT', 0x00020000);
72
+ define('WPF2B_EVENT_CLASS_XMLRPC', 0x00040000);
73
+ define('WPF2B_EVENT_CLASS_PASSWORD', 0x00080000);
74
+ define('WPF2B_EVENT_CLASS_REST', 0x00100000); /** @since 4.1.0 */
75
+ define('WPF2B_EVENT_CLASS_SPAM', 0x00200000); /** @since 4.2.0 */
76
+ define('WPF2B_EVENT_CLASS_BLOCK', 0x00400000); /** @since 4.3.0 */
77
+ define('WPF2B_EVENT_TYPE_PLUGIN', 0x40000000); /** @since 4.2.0 */
78
+ define('WPF2B_EVENT_TYPE_TEST', 0x80000000); /** @since 4.2.0 */
79
+ define('WPF2B_EVENT_SUCCESS', 0x00000001); /** @since 4.3.0 */
80
+ define('WPF2B_EVENT_FAILURE', 0x00000002); /** @since 4.3.0 */
81
 
 
 
 
 
82
 
83
+ // @codeCoverageIgnore
84
+ /**
85
+ *
86
+ */
87
+ // @codeCoverageIgnoreStart
88
+ define('WPF2B_EVENT_ACTIVATED', 0xffffffff);
89
 
90
+ // @codeCoverageIgnore
91
+ /**
92
+ * Auth
93
+ */
94
+ // @codeCoverageIgnoreStart
95
+ define('WPF2B_EVENT_AUTH_OK', WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_SUCCESS);
96
+ define('WPF2B_EVENT_AUTH_FAIL', WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_FAILURE);
97
+ define('WPF2B_EVENT_AUTH_BLOCK_USER', WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_CLASS_BLOCK | WPF2B_EVENT_A);
98
+ define('WPF2B_EVENT_AUTH_BLOCK_USER_ENUM', WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_CLASS_BLOCK | WPF2B_EVENT_B);
99
+ define('WPF2B_EVENT_AUTH_EMPTY_USER', WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_FAILURE | WPF2B_EVENT_C);
100
+ define('WPF2B_EVENT_AUTH_BLOCK_USERNAME_LOGIN', WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_CLASS_BLOCK | WPF2B_EVENT_D); /** @since 4.3.0 */
101
 
102
+ // @codeCoverageIgnore
103
+ /**
104
+ * Comment
105
+ */
106
+ // @codeCoverageIgnoreStart
107
+ define('WPF2B_EVENT_COMMENT', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_SUCCESS);
108
+ define('WPF2B_EVENT_COMMENT_SPAM', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_CLASS_SPAM);
109
+ // comment extra
110
+ define('WPF2B_EVENT_COMMENT_NOT_FOUND', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_FAILURE | WPF2B_EVENT_A);
111
+ define('WPF2B_EVENT_COMMENT_CLOSED', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_FAILURE | WPF2B_EVENT_B);
112
+ define('WPF2B_EVENT_COMMENT_TRASH', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_FAILURE | WPF2B_EVENT_C);
113
+ define('WPF2B_EVENT_COMMENT_DRAFT', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_FAILURE | WPF2B_EVENT_D);
114
+ define('WPF2B_EVENT_COMMENT_PASSWORD', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_CLASS_PASSWORD | WPF2B_EVENT_FAILURE | WPF2B_EVENT_E);
115
 
116
+ // @codeCoverageIgnore
117
+ /**
118
+ * XML-RPC
119
+ */
120
+ // @codeCoverageIgnoreStart
121
+ define('WPF2B_EVENT_XMLRPC_PINGBACK', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_SUCCESS | WPF2B_EVENT_A);
122
+ define('WPF2B_EVENT_XMLRPC_PINGBACK_ERROR', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_FAILURE | WPF2B_EVENT_A);
123
+ define('WPF2B_EVENT_XMLRPC_MULTI_AUTH_FAIL', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_FAILURE | WPF2B_EVENT_B);
124
+ define('WPF2B_EVENT_XMLRPC_AUTH_OK', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_SUCCESS);
125
+ define('WPF2B_EVENT_XMLRPC_AUTH_FAIL', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_FAILURE);
126
 
127
+ // @codeCoverageIgnore
128
+ /**
129
+ * Password
130
+ */
131
+ // @codeCoverageIgnoreStart
132
+ define('WPF2B_EVENT_PASSWORD_REQUEST', WPF2B_EVENT_CLASS_PASSWORD | WPF2B_EVENT_SUCCESS);
133
 
134
+ // @codeCoverageIgnore
135
+ /**
136
+ * REST
137
+ * @since 4.1.0
138
+ */
139
+ // @codeCoverageIgnoreStart
140
+ define('WPF2B_EVENT_REST_AUTH_OK', WPF2B_EVENT_CLASS_REST | WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_SUCCESS);
141
+ define('WPF2B_EVENT_REST_AUTH_FAIL', WPF2B_EVENT_CLASS_REST | WPF2B_EVENT_CLASS_AUTH | WPF2B_EVENT_FAILURE);
142
 
143
+ // @codeCoverageIgnore
144
+ /**
145
+ *
146
+ */
147
+ // @codeCoverageIgnoreStart
148
+ define('WPF2B_EVENT_DEACTIVATED', 0x00000000);
149
 
150
+ // @codeCoverageIgnore
151
+ /**
152
+ * @deprecated 4.3.0
153
+ */
154
+ // @codeCoverageIgnoreStart
155
+ define('WPF2B_EVENT_AUTH_BLOCK_USER__', WPF2B_EVENT_CLASS_AUTH | 0x0004); /** @deprecated 4.3.0 */
156
+ define('WPF2B_EVENT_AUTH_BLOCK_USER_ENUM__', WPF2B_EVENT_CLASS_AUTH | 0x0008); /** @deprecated 4.3.0 */
157
+ define('WPF2B_EVENT_COMMENT_SPAM__', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_CLASS_SPAM | 0x0001); /** @deprecated 4.3.0 */
158
+ define('WPF2B_EVENT_COMMENT_NOT_FOUND__', WPF2B_EVENT_CLASS_COMMENT | 0x0002); /** @deprecated 4.3.0 */
159
+ define('WPF2B_EVENT_COMMENT_CLOSED__', WPF2B_EVENT_CLASS_COMMENT | 0x0004); /** @deprecated 4.3.0 */
160
+ define('WPF2B_EVENT_COMMENT_TRASH__', WPF2B_EVENT_CLASS_COMMENT | 0x0010); /** @deprecated 4.3.0 */
161
+ define('WPF2B_EVENT_COMMENT_DRAFT__', WPF2B_EVENT_CLASS_COMMENT | 0x0010); /** @deprecated 4.3.0 */
162
+ define('WPF2B_EVENT_COMMENT_PASSWORD__', WPF2B_EVENT_CLASS_COMMENT | WPF2B_EVENT_CLASS_PASSWORD | 0x0020); /** @deprecated 4.3.0 */
163
+ define('WPF2B_EVENT_XMLRPC_PINGBACK__', WPF2B_EVENT_CLASS_XMLRPC | 0x0001);
164
+ define('WPF2B_EVENT_XMLRPC_PINGBACK_ERROR__', WPF2B_EVENT_CLASS_XMLRPC | 0x0002);
165
+ define('WPF2B_EVENT_XMLRPC_MULTI_AUTH_FAIL__', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_CLASS_AUTH | 0x0004); /** @deprecated 4.3.0 */
166
+ define('WPF2B_EVENT_XMLRPC_AUTH_OK__', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_CLASS_AUTH | 0x0008); /** @deprecated 4.3.0 */
167
+ define('WPF2B_EVENT_XMLRPC_AUTH_FAIL__', WPF2B_EVENT_CLASS_XMLRPC | WPF2B_EVENT_CLASS_AUTH | 0x0010); /** @deprecated 4.3.0 */
168
+ // phpcs:enable
169
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/loader.php CHANGED
@@ -44,7 +44,6 @@ class Config
44
  if (is_null(self::$instance)) {
45
  global $wp_fail2ban;
46
 
47
- init_constants();
48
  init_defaults();
49
 
50
  $class = get_called_class();
44
  if (is_null(self::$instance)) {
45
  global $wp_fail2ban;
46
 
 
47
  init_defaults();
48
 
49
  $class = get_called_class();
readme.txt CHANGED
@@ -6,7 +6,7 @@ Plugin URI: https://wp-fail2ban.com/?utm_source=wordpress.org&utm_medium=readme&
6
  Tags: fail2ban, login, security, syslog, brute force, protection, classicpress
7
  Requires at least: 4.2
8
  Tested up to: 5.5
9
- Stable tag: 4.3.0.6
10
  Requires PHP: 5.6
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -78,6 +78,10 @@ Write a myriad of WordPress events to syslog for integration with fail2ban.
78
 
79
  == Changelog ==
80
 
 
 
 
 
81
  = 4.3.0.6 =
82
  * Fix Forbidden error on Posts page for roles below Editor when user enum blocking enabled. [WordPress only]
83
 
@@ -259,6 +263,9 @@ Write a myriad of WordPress events to syslog for integration with fail2ban.
259
 
260
  == Upgrade Notice ==
261
 
 
 
 
262
  = 4.3.0.6 =
263
  This is a bugfix release. You do not need to update your filters from 4.3.0.
264
 
6
  Tags: fail2ban, login, security, syslog, brute force, protection, classicpress
7
  Requires at least: 4.2
8
  Tested up to: 5.5
9
+ Stable tag: 4.3.0.7
10
  Requires PHP: 5.6
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
78
 
79
  == Changelog ==
80
 
81
+ = 4.3.0.7 =
82
+ * Finish refactoring to allow inclusion of constants in `wp-config.php` (h/t @iCounsellor).
83
+ * Fix MaxMind database update. [Premium only]
84
+
85
  = 4.3.0.6 =
86
  * Fix Forbidden error on Posts page for roles below Editor when user enum blocking enabled. [WordPress only]
87
 
263
 
264
  == Upgrade Notice ==
265
 
266
+ = 4.3.0.7 =
267
+ This is a bugfix release. You do not need to update your filters from 4.3.0. Premium users: Please update your MaxMind database.
268
+
269
  = 4.3.0.6 =
270
  This is a bugfix release. You do not need to update your filters from 4.3.0.
271
 
wp-fail2ban.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://wp-fail2ban.com/
5
  * Description: Write a myriad of WordPress events to syslog for integration with fail2ban.
6
  * Text Domain: wp-fail2ban
7
- * Version: 4.3.0.6
8
  * Author: Charles Lecklider
9
  * Author URI: https://invis.net/
10
  * License: GPLv2
4
  * Plugin URI: https://wp-fail2ban.com/
5
  * Description: Write a myriad of WordPress events to syslog for integration with fail2ban.
6
  * Text Domain: wp-fail2ban
7
+ * Version: 4.3.0.7
8
  * Author: Charles Lecklider
9
  * Author URI: https://invis.net/
10
  * License: GPLv2