Skip to content

Commit 60f4722

Browse files
committed
fix(php8): resolves #341, fix for php8+ compatibility issue
1 parent 7f0125c commit 60f4722

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

core/class-utilities.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ public static function refresh_htaccess() {
232232
$lines = array();
233233

234234
if ( 'htaccess_legacy' === $settings ) {
235-
$lines[] = 'Deny from ' . implode( $denied_ips, ' ' );
235+
$lines[] = 'Deny from ' . implode( ' ', $denied_ips );
236236
} elseif ( 'htaccess_modern' === $settings ) {
237237
$lines[] = '<RequireAll>';
238238
$lines[] = 'Require all granted';
239-
$lines[] = 'Require not ip ' . implode( $denied_ips, ' ' );
239+
$lines[] = 'Require not ip ' . implode( ' ', $denied_ips );
240240
$lines[] = '</RequireAll>';
241241
}
242242
}

readme.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Contributors: bmarshall511
33
Tags: protection, firewall, security, spam, spam blocker
44
Donate link: https://www.zerospam.org/subscribe/
55
Requires at least: 5.2
6-
Tested up to: 6.0.2
7-
Requires PHP: 7.3
8-
Stable tag: 5.4.3
6+
Tested up to: 6.1.1
7+
Requires PHP: 7.4
8+
Stable tag: 5.4.4
99
License: GNU GPLv3
1010
License URI: https://choosealicense.com/licenses/gpl-3.0/
1111

@@ -107,6 +107,10 @@ If hosting with Pantheon, see their [known issues page](https://pantheon.io/docs
107107

108108
== Changelog ==
109109

110+
= v5.4.4 =
111+
112+
* fix(php8): resolves #341, fix for php8+ compatibility issue
113+
110114
= v5.4.3 =
111115

112116
* fix(emojis): fix for fatal error when emojis are disabled

wordpress-zero-spam.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Plugin Name: Zero Spam for WordPress
1414
* Plugin URI: https://www.highfivery.com/projects/zero-spam/
1515
* Description: Tired of all the ineffective WordPress anti-spam & security plugins? Zero Spam for WordPress makes blocking spam &amp; malicious activity a cinch. <strong>Just activate, configure, and say goodbye to spam.</strong>
16-
* Version: 5.4.3
16+
* Version: 5.4.4
1717
* Requires at least: 5.2
1818
* Requires PHP: 7.3
1919
* Author: Highfivery LLC
@@ -31,7 +31,7 @@
3131
define( 'ZEROSPAM', __FILE__ );
3232
define( 'ZEROSPAM_PATH', plugin_dir_path( ZEROSPAM ) );
3333
define( 'ZEROSPAM_PLUGIN_BASE', plugin_basename( ZEROSPAM ) );
34-
define( 'ZEROSPAM_VERSION', '5.4.3' );
34+
define( 'ZEROSPAM_VERSION', '5.4.4' );
3535

3636
if ( defined( 'ZEROSPAM_DEVELOPMENT_URL' ) ) {
3737
define( 'ZEROSPAM_URL', ZEROSPAM_DEVELOPMENT_URL );

0 commit comments

Comments
 (0)