Skip to content

Commit ce4da46

Browse files
committed
Validated with WordPress 6.5.x
1 parent f806d55 commit ce4da46

File tree

8 files changed

+287
-254
lines changed

8 files changed

+287
-254
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The plugin also plays nicely with Fail2ban, which is an advanced way of blocking
3333
### Other notes
3434

3535
* This plugin `may` work with earlier versions of WordPress
36-
* This plugin has been tested with `WordPress 5.5+ and 6.2.x` at the time of this writing
36+
* This plugin has been tested with `WordPress 5.5+ and 6.5.x` at the time of this writing
3737
* This plugin has been tested with `PHP 7.2, 7.4, and 8.1.20` at the time of this writing
3838
* This plugin optionally makes use of `mb_` PHP functions
3939
* This plugin may create entries in your PHP error log (if active)
@@ -69,6 +69,10 @@ This is a hard question to answer. There are no known incompatibilities.
6969

7070
## Changelog
7171

72+
### 1.2.1
73+
* Verified with WordPress 6.5.2
74+
* Updated "About" information
75+
7276
### 1.2.0
7377
* Verified with WordPress 6.2.2 and PHP 8.1.20
7478
* Added support for allow/deny list for login (IP address, hostname with wildcard support)
@@ -96,6 +100,9 @@ This is a hard question to answer. There are no known incompatibilities.
96100

97101
## Upgrade Notice
98102

103+
### 1.2.1
104+
* Install the new version, no changes have been made to settings.
105+
99106
### 1.2.0
100107
* Install the new version and walk through the settings.
101108
* Check your fail2ban configuration against the supplied sample `fail2wp.conf`!
@@ -113,7 +120,7 @@ This is a hard question to answer. There are no known incompatibilities.
113120

114121
Please see [LICENSE](LICENSE) for a full copy of GPLv2
115122

116-
Copyright (C) 2020, 2021, 2022, 2023 [Joaquim Homrighausen](https://github.com/joho1968); all rights reserved.
123+
Copyright (C) 2020, 2021, 2022, 2023, 2024 [Joaquim Homrighausen](https://github.com/joho1968); all rights reserved.
117124

118125
This file is part of Fail2WP. Fail2WP is free software.
119126

fail2wp/fail2wp.php

Lines changed: 231 additions & 234 deletions
Large diffs are not rendered by default.

fail2wp/includes/class-fail2wp-syslog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @author Joaquim Homrighausen <joho@webbplatsen.se>
99
*
1010
* class-fail2wp-syslog.php
11-
* Copyright (C) 2021, 2022 Joaquim Homrighausen; all rights reserved.
11+
* Copyright (C) 2021,2022,2023,2024 Joaquim Homrighausen; all rights reserved.
1212
* Development sponsored by WebbPlatsen i Sverige AB, www.webbplatsen.se
1313
*
1414
* This file is part of Fail2WP. Fail2WP is free software.

fail2wp/includes/fail2wp_misc.inc.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @author Joaquim Homrighausen <joho@webbplatsen.se>
99
*
1010
* fail2wp_misc.inc.php
11-
* Copyright (C) 2021, 2022, 2023 Joaquim Homrighausen; all rights reserved.
11+
* Copyright (C) 2021,2022,2023,2024 Joaquim Homrighausen; all rights reserved.
1212
* Development sponsored by WebbPlatsen i Sverige AB, www.webbplatsen.se
1313
*
1414
* This file is part of Fail2WP. Fail2WP is free software.
@@ -34,19 +34,19 @@
3434
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) {
3535
error_log( 'fail2wp-uninstall: (misc) WPINC not defined ' );
3636
}
37-
die;
37+
die;
3838
}
3939
if ( ! defined( 'ABSPATH' ) ) {
4040
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) {
4141
error_log( 'fail2wp-uninstall: (misc) ABSPATH not defined ' );
4242
}
43-
die( '-1' );
43+
die( '-1' );
4444
}
4545
if ( ! defined( 'FAIL2WP_WORDPRESS_PLUGIN' ) ) {
4646
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) {
4747
error_log( 'fail2wp-uninstall: (misc) FAIL2WP_WORDPRESS_PLUGIN not defined ' );
4848
}
49-
die( '-1' );
49+
die( '-1' );
5050
}
5151

5252

@@ -58,7 +58,6 @@
5858
* @since 1.1.0
5959
*/
6060
function fail2wp_misc_delete_all_settings() {
61-
6261
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) {
6362
error_log( 'fail2wp-uninstall: ' . __FUNCTION__ . ' start' );
6463
}

fail2wp/languages/fail2wp-sv_SE.mo

5.63 KB
Binary file not shown.

fail2wp/languages/fail2wp-sv_SE.po

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Fail2WP WordPress plugin <sv_SE> translation
2-
# Copyright (C) 2021, 2022, 2023 Joaquim Homrighausen
2+
# Copyright (C) 2021,2022,2023,2024 Joaquim Homrighausen
33
# This file is distributed under the same license as the Fail2WP package.
44
# Joaquim Homrighausen <joho@webbplatsen.se>, 2023.
55
#
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: fail2wp 1.2.0\n"
9+
"Project-Id-Version: fail2wp 1.2.1\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2023-03-08 15:51+0100\n"
12-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12+
"PO-Revision-Date: 2024-04-29 11:45+0100\n"
1313
"Last-Translator: Joaquim Homrighausen <joho@webbplatsen.se>\n"
1414
"Language-Team: SWEDISH <joho@webbplatsen.se>\n"
1515
"Language: sv_SE\n"
@@ -439,6 +439,22 @@ msgstr ""
439439
msgid "There is more documentation available at"
440440
msgstr "Det finns mer dokumentation på"
441441

442+
#: fail2wp.php:1669
443+
msgid "Other plugins"
444+
msgstr "Andra tillägg"
445+
446+
#: fail2wp.php:1673
447+
msgid ""
448+
"Plugin that provides integration with Mattermost, including notifications "
449+
"and OAuth2 authentication"
450+
msgstr ""
451+
"Ett tillägg som integrerar WordPress med Mattermost, inklusive aviseringar "
452+
"och OAuth2-autentisering"
453+
454+
#: fail2wp.php:1678
455+
msgid "Plugin that provides uncomplicated map functionality"
456+
msgstr "Ett tillägg som tillhandahåller okomplicerad kartfunktionalitet"
457+
442458
#: fail2wp.php:1375 fail2wp.php:1705
443459
msgid "Remove generator info"
444460
msgstr "Inaktivera generatorinfo"
@@ -742,7 +758,7 @@ msgid ""
742758
"here, the login will be denied"
743759
msgstr ""
744760
"Om denna lista används, och besökarens IP-adress inte matchar någon av "
745-
"posterna här, så kommer inloggning inte tillåtas"
761+
"posterna här, så kommer inloggning inte tillåtas"
746762

747763
#: fail2wp.php:2131
748764
msgid "IPs matching these addresses will be prevented from logging in"

fail2wp/languages/fail2wp.pot

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Fail2WP WordPress plugin <LANGUAGE> translation
2-
# Copyright (C) 2021, 2022, 2023 Joaquim Homrighausen
2+
# Copyright (C) 2021,2022,2023,2024 Joaquim Homrighausen
33
# This file is distributed under the same license as the Fail2WP package.
44
# Joaquim Homrighausen <joho@webbplatsen.se>, 2023.
55
#
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: fail2wp 1.2.0\n"
9+
"Project-Id-Version: fail2wp 1.2.1\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2023-03-08 15:51+0100\n"
12-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12+
"PO-Revision-Date: 2024-04-29 11:45+0100\n"
1313
"Last-Translator: Joaquim Homrighausen <joho@webbplatsen.se>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
1515
"Language: \n"
@@ -248,6 +248,20 @@ msgstr ""
248248
msgid "There is more documentation available at"
249249
msgstr ""
250250

251+
#: fail2wp.php:1669
252+
msgid "Other plugins"
253+
msgstr ""
254+
255+
#: fail2wp.php:1673
256+
msgid ""
257+
"Plugin that provides integration with Mattermost, including notifications "
258+
"and OAuth2 authentication"
259+
msgstr ""
260+
261+
#: fail2wp.php:1678
262+
msgid "Plugin that provides uncomplicated map functionality"
263+
msgstr ""
264+
251265
#: fail2wp.php:1374 fail2wp.php:1699
252266
msgid "Site label"
253267
msgstr ""

fail2wp/uninstall.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @author Joaquim Homrighausen <joho@webbplatsen.se>
99
*
1010
* uninstall.php
11-
* Copyright (C) 2021, 2022, 2023 Joaquim Homrighausen; all rights reserved.
11+
* Copyright (C) 2021,2022,2023,2024 Joaquim Homrighausen; all rights reserved.
1212
* Development sponsored by WebbPlatsen i Sverige AB, www.webbplatsen.se
1313
*
1414
* This file is part of Fail2WP. Fail2WP is free software.
@@ -38,28 +38,28 @@
3838
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) {
3939
error_log( 'fail2wp-uninstall: init' );
4040
}
41-
exit;
41+
exit;
4242
}
4343
// If action is not to uninstall, then exit
4444
if ( empty( $_REQUEST['action'] ) || $_REQUEST['action'] !== 'delete-plugin' ) {
4545
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) {
4646
error_log( 'fail2wp-uninstall: REQUEST["action"] is not delete-plugin' );
4747
}
48-
exit;
48+
exit;
4949
}
5050
// If it's not us, then exit
5151
if ( empty( $_REQUEST['slug'] ) || $_REQUEST['slug'] !== 'fail2wp' ) {
5252
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) {
5353
error_log( 'fail2wp-uninstall: REQUEST["slug"] is not fail2wp' );
5454
}
55-
exit;
55+
exit;
5656
}
5757
// If we shouldn't do this, then exit
5858
if ( ! current_user_can( 'manage_options' ) || ! current_user_can( 'delete_plugins' ) ) {
5959
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) {
6060
error_log( 'fail2wp-uninstall: User is not allowed to manage/uninstall plugins' );
6161
}
62-
exit;
62+
exit;
6363
}
6464

6565
// Figure out if an uninstall should remove plugin settings

0 commit comments

Comments
 (0)