WP fail2ban - Version 4.2.7.1

Version Description

  • Fix error when blocking user enumeration via oembed (h/t @wordpressfab).
Download this release

Release Info

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

Code changes from version 4.2.7 to 4.2.7.1

admin/lib/about.php CHANGED
@@ -39,6 +39,16 @@ function about( $hide_title = false )
39
  <div id="poststuff">
40
  <div id="post-body" class="metabox-holder columns-2">
41
  <div id="post-body-content">
 
 
 
 
 
 
 
 
 
 
42
  <div class="meta-box-sortables ui-sortable">
43
  <div class="postbox">
44
  <h2>Version 4.2.7</h2>
39
  <div id="poststuff">
40
  <div id="post-body" class="metabox-holder columns-2">
41
  <div id="post-body-content">
42
+ <div class="meta-box-sortables ui-sortable">
43
+ <div class="postbox">
44
+ <h2>Version 4.2.7.1</h2>
45
+ <div class="inside">
46
+ <ul>
47
+ <li>Fix error when blocking user enumeration via <tt>oembed</tt>.</li>
48
+ </ul>
49
+ </div>
50
+ </div>
51
+ </div>
52
  <div class="meta-box-sortables ui-sortable">
53
  <div class="postbox">
54
  <h2>Version 4.2.7</h2>
feature/user-enum.php CHANGED
@@ -111,12 +111,13 @@ if ( !function_exists( __NAMESPACE__ . '\\oembed_response_data' ) ) {
111
  *
112
  * @see \get_oembed_response_data()
113
  *
 
114
  * @since 4.2.6
115
  *
116
- * @param array $data The response data.
117
- * @param WP_Post $post The post object.
118
- * @param int $width The requested width.
119
- * @param int $height The calculated height.
120
  *
121
  * @return array
122
  */
@@ -132,5 +133,11 @@ if ( !function_exists( __NAMESPACE__ . '\\oembed_response_data' ) ) {
132
  return $data;
133
  }
134
 
135
- add_filter( 'oembed_response_data', __NAMESPACE__ . '\\oembed_response_data' );
 
 
 
 
 
 
136
  }
111
  *
112
  * @see \get_oembed_response_data()
113
  *
114
+ * @since 4.2.7.1 Fix `add_filter()` params
115
  * @since 4.2.6
116
  *
117
+ * @param array $data The response data.
118
+ * @param \WP_Post $post The post object.
119
+ * @param int $width The requested width.
120
+ * @param int $height The calculated height.
121
  *
122
  * @return array
123
  */
133
  return $data;
134
  }
135
 
136
+ add_filter(
137
+ 'oembed_response_data',
138
+ __NAMESPACE__ . '\\oembed_response_data',
139
+ PHP_INT_MAX - 1,
140
+ // almost last in case something expects author_xxx to be set
141
+ 4
142
+ );
143
  }
filters.d/wordpress-extra.conf CHANGED
@@ -1,5 +1,5 @@
1
  # Fail2Ban filter for WordPress extra failures
2
- # Auto-generated: 2019-09-24T03:49:49+00:00
3
  #
4
 
5
  [INCLUDES]
1
  # Fail2Ban filter for WordPress extra failures
2
+ # Auto-generated: 2019-09-30T18:16:57+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: 2019-09-24T03:49:49+00:00
3
  #
4
 
5
  [INCLUDES]
1
  # Fail2Ban filter for WordPress hard failures
2
+ # Auto-generated: 2019-09-30T18:16:57+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: 2019-09-24T03:49:49+00:00
3
  #
4
 
5
  [INCLUDES]
1
  # Fail2Ban filter for WordPress soft failures
2
+ # Auto-generated: 2019-09-30T18:16:57+00:00
3
  #
4
 
5
  [INCLUDES]
readme.txt CHANGED
@@ -6,7 +6,7 @@ Plugin URI: https://wp-fail2ban.com/
6
  Tags: fail2ban, login, security, syslog
7
  Requires at least: 4.2
8
  Tested up to: 5.2
9
- Stable tag: 4.2.7
10
  Requires PHP: 5.3
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -70,6 +70,9 @@ Write a myriad of WordPress events to syslog for integration with fail2ban.
70
 
71
  == Changelog ==
72
 
 
 
 
73
  = 4.2.7 =
74
  * Fix error when blocking user enumeration via REST.
75
  * Fix buttons on Settings tabs.
@@ -225,6 +228,9 @@ Write a myriad of WordPress events to syslog for integration with fail2ban.
225
 
226
  == Upgrade Notice ==
227
 
 
 
 
228
  = 4.2.7 =
229
  This is a bugfix release. You do not need to update your filters from 4.1.0.
230
 
6
  Tags: fail2ban, login, security, syslog
7
  Requires at least: 4.2
8
  Tested up to: 5.2
9
+ Stable tag: 4.2.7.1
10
  Requires PHP: 5.3
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
70
 
71
  == Changelog ==
72
 
73
+ = 4.2.7.1 =
74
+ * Fix error when blocking user enumeration via `oembed` (h/t @wordpressfab).
75
+
76
  = 4.2.7 =
77
  * Fix error when blocking user enumeration via REST.
78
  * Fix buttons on Settings tabs.
228
 
229
  == Upgrade Notice ==
230
 
231
+ = 4.2.7.1 =
232
+ This is a bugfix release. You do not need to update your filters from 4.1.0.
233
+
234
  = 4.2.7 =
235
  This is a bugfix release. You do not need to update your filters from 4.1.0.
236
 
vendor/freemius/wordpress-sdk/assets/img/wp-fail2ban.png CHANGED
Binary file
wp-fail2ban.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin URI: https://wp-fail2ban.com/
6
  * Description: Write a myriad of WordPress events to syslog for integration with fail2ban.
7
  * Text Domain: wp-fail2ban
8
- * Version: 4.2.7
9
  * Author: Charles Lecklider
10
  * Author URI: https://charles.lecklider.org/
11
  * License: GPLv2
@@ -39,7 +39,7 @@ namespace org\lecklider\charles\wordpress\wp_fail2ban;
39
  /**
40
  * @since 4.0.5
41
  */
42
- define( 'WP_FAIL2BAN_VER', '4.2.7' );
43
  define( 'WP_FAIL2BAN_FILE', __FILE__ );
44
 
45
  if ( defined( 'ABSPATH' ) ) {
5
  * Plugin URI: https://wp-fail2ban.com/
6
  * Description: Write a myriad of WordPress events to syslog for integration with fail2ban.
7
  * Text Domain: wp-fail2ban
8
+ * Version: 4.2.7.1
9
  * Author: Charles Lecklider
10
  * Author URI: https://charles.lecklider.org/
11
  * License: GPLv2
39
  /**
40
  * @since 4.0.5
41
  */
42
+ define( 'WP_FAIL2BAN_VER', '4.2.7.1' );
43
  define( 'WP_FAIL2BAN_FILE', __FILE__ );
44
 
45
  if ( defined( 'ABSPATH' ) ) {