-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
287 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @author Joaquim Homrighausen <[email protected]> | ||
* | ||
* class-fail2wp-syslog.php | ||
* Copyright (C) 2021, 2022 Joaquim Homrighausen; all rights reserved. | ||
* Copyright (C) 2021,2022,2023,2024 Joaquim Homrighausen; all rights reserved. | ||
* Development sponsored by WebbPlatsen i Sverige AB, www.webbplatsen.se | ||
* | ||
* This file is part of Fail2WP. Fail2WP is free software. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @author Joaquim Homrighausen <[email protected]> | ||
* | ||
* fail2wp_misc.inc.php | ||
* Copyright (C) 2021, 2022, 2023 Joaquim Homrighausen; all rights reserved. | ||
* Copyright (C) 2021,2022,2023,2024 Joaquim Homrighausen; all rights reserved. | ||
* Development sponsored by WebbPlatsen i Sverige AB, www.webbplatsen.se | ||
* | ||
* This file is part of Fail2WP. Fail2WP is free software. | ||
|
@@ -34,19 +34,19 @@ | |
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) { | ||
error_log( 'fail2wp-uninstall: (misc) WPINC not defined ' ); | ||
} | ||
die; | ||
die; | ||
} | ||
if ( ! defined( 'ABSPATH' ) ) { | ||
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) { | ||
error_log( 'fail2wp-uninstall: (misc) ABSPATH not defined ' ); | ||
} | ||
die( '-1' ); | ||
die( '-1' ); | ||
} | ||
if ( ! defined( 'FAIL2WP_WORDPRESS_PLUGIN' ) ) { | ||
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) { | ||
error_log( 'fail2wp-uninstall: (misc) FAIL2WP_WORDPRESS_PLUGIN not defined ' ); | ||
} | ||
die( '-1' ); | ||
die( '-1' ); | ||
} | ||
|
||
|
||
|
@@ -58,7 +58,6 @@ | |
* @since 1.1.0 | ||
*/ | ||
function fail2wp_misc_delete_all_settings() { | ||
|
||
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) { | ||
error_log( 'fail2wp-uninstall: ' . __FUNCTION__ . ' start' ); | ||
} | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# Fail2WP WordPress plugin <sv_SE> translation | ||
# Copyright (C) 2021, 2022, 2023 Joaquim Homrighausen | ||
# Copyright (C) 2021,2022,2023,2024 Joaquim Homrighausen | ||
# This file is distributed under the same license as the Fail2WP package. | ||
# Joaquim Homrighausen <[email protected]>, 2023. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: fail2wp 1.2.0\n" | ||
"Project-Id-Version: fail2wp 1.2.1\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-03-08 15:51+0100\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"PO-Revision-Date: 2024-04-29 11:45+0100\n" | ||
"Last-Translator: Joaquim Homrighausen <[email protected]>\n" | ||
"Language-Team: SWEDISH <[email protected]>\n" | ||
"Language: sv_SE\n" | ||
|
@@ -439,6 +439,22 @@ msgstr "" | |
msgid "There is more documentation available at" | ||
msgstr "Det finns mer dokumentation på" | ||
|
||
#: fail2wp.php:1669 | ||
msgid "Other plugins" | ||
msgstr "Andra tillägg" | ||
|
||
#: fail2wp.php:1673 | ||
msgid "" | ||
"Plugin that provides integration with Mattermost, including notifications " | ||
"and OAuth2 authentication" | ||
msgstr "" | ||
"Ett tillägg som integrerar WordPress med Mattermost, inklusive aviseringar " | ||
"och OAuth2-autentisering" | ||
|
||
#: fail2wp.php:1678 | ||
msgid "Plugin that provides uncomplicated map functionality" | ||
msgstr "Ett tillägg som tillhandahåller okomplicerad kartfunktionalitet" | ||
|
||
#: fail2wp.php:1375 fail2wp.php:1705 | ||
msgid "Remove generator info" | ||
msgstr "Inaktivera generatorinfo" | ||
|
@@ -742,7 +758,7 @@ msgid "" | |
"here, the login will be denied" | ||
msgstr "" | ||
"Om denna lista används, och besökarens IP-adress inte matchar någon av " | ||
"posterna här, så kommer inloggning inte tillåtas" | ||
"posterna här, så kommer inloggning inte tillåtas" | ||
|
||
#: fail2wp.php:2131 | ||
msgid "IPs matching these addresses will be prevented from logging in" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# Fail2WP WordPress plugin <LANGUAGE> translation | ||
# Copyright (C) 2021, 2022, 2023 Joaquim Homrighausen | ||
# Copyright (C) 2021,2022,2023,2024 Joaquim Homrighausen | ||
# This file is distributed under the same license as the Fail2WP package. | ||
# Joaquim Homrighausen <[email protected]>, 2023. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: fail2wp 1.2.0\n" | ||
"Project-Id-Version: fail2wp 1.2.1\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-03-08 15:51+0100\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"PO-Revision-Date: 2024-04-29 11:45+0100\n" | ||
"Last-Translator: Joaquim Homrighausen <[email protected]>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
"Language: \n" | ||
|
@@ -248,6 +248,20 @@ msgstr "" | |
msgid "There is more documentation available at" | ||
msgstr "" | ||
|
||
#: fail2wp.php:1669 | ||
msgid "Other plugins" | ||
msgstr "" | ||
|
||
#: fail2wp.php:1673 | ||
msgid "" | ||
"Plugin that provides integration with Mattermost, including notifications " | ||
"and OAuth2 authentication" | ||
msgstr "" | ||
|
||
#: fail2wp.php:1678 | ||
msgid "Plugin that provides uncomplicated map functionality" | ||
msgstr "" | ||
|
||
#: fail2wp.php:1374 fail2wp.php:1699 | ||
msgid "Site label" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @author Joaquim Homrighausen <[email protected]> | ||
* | ||
* uninstall.php | ||
* Copyright (C) 2021, 2022, 2023 Joaquim Homrighausen; all rights reserved. | ||
* Copyright (C) 2021,2022,2023,2024 Joaquim Homrighausen; all rights reserved. | ||
* Development sponsored by WebbPlatsen i Sverige AB, www.webbplatsen.se | ||
* | ||
* This file is part of Fail2WP. Fail2WP is free software. | ||
|
@@ -38,28 +38,28 @@ | |
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) { | ||
error_log( 'fail2wp-uninstall: init' ); | ||
} | ||
exit; | ||
exit; | ||
} | ||
// If action is not to uninstall, then exit | ||
if ( empty( $_REQUEST['action'] ) || $_REQUEST['action'] !== 'delete-plugin' ) { | ||
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) { | ||
error_log( 'fail2wp-uninstall: REQUEST["action"] is not delete-plugin' ); | ||
} | ||
exit; | ||
exit; | ||
} | ||
// If it's not us, then exit | ||
if ( empty( $_REQUEST['slug'] ) || $_REQUEST['slug'] !== 'fail2wp' ) { | ||
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) { | ||
error_log( 'fail2wp-uninstall: REQUEST["slug"] is not fail2wp' ); | ||
} | ||
exit; | ||
exit; | ||
} | ||
// If we shouldn't do this, then exit | ||
if ( ! current_user_can( 'manage_options' ) || ! current_user_can( 'delete_plugins' ) ) { | ||
if ( defined( 'FAIL2WP_UNINSTALL_TRACE' ) ) { | ||
error_log( 'fail2wp-uninstall: User is not allowed to manage/uninstall plugins' ); | ||
} | ||
exit; | ||
exit; | ||
} | ||
|
||
// Figure out if an uninstall should remove plugin settings | ||
|