Skip to content

Commit

Permalink
Hotfix for overaggressive filters.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrrv committed Oct 22, 2023
1 parent 75e2cd6 commit 8fccb2d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A WordPress Plugin for integrating with TouchPoint Church Management Software.",
"license": "AGPL-3.0-or-later",
"type": "wordpress-plugin",
"version": "0.0.35",
"version": "0.0.36",
"keywords": [
"wordpress",
"wp",
Expand Down
4 changes: 2 additions & 2 deletions i18n/TouchPoint-WP.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the AGPLv3+.
msgid ""
msgstr ""
"Project-Id-Version: TouchPoint WP 0.0.35\n"
"Project-Id-Version: TouchPoint WP 0.0.36\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/TouchPoint-WP\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-10-07T12:42:23+00:00\n"
"POT-Creation-Date: 2023-10-22T18:00:47+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.8.1\n"
"X-Domain: TouchPoint-WP\n"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "touchpoint-wp",
"version": "0.0.35",
"version": "0.0.36",
"description": "A WordPress Plugin for integrating with TouchPoint Church Management Software.",
"directories": {
"doc": "docs"
Expand Down
2 changes: 1 addition & 1 deletion src/TouchPoint-WP/TouchPointWP.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class TouchPointWP
/**
* Version number
*/
public const VERSION = "0.0.35";
public const VERSION = "0.0.36";

/**
* The Token
Expand Down
16 changes: 8 additions & 8 deletions src/TouchPoint-WP/Utilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -723,14 +723,14 @@ public static function getClientIp(): ?string
/**
* Determine if an email address or user should be accepted as a new registrant. (e.g. informal auth)
*
* @param string $nickname
* @param string $emailAddress
* @param ?string $nickname
* @param ?string $emailAddress
* @param ?string $resultComment If a spam provider provides a comment about why content was allowed or rejected,
* it goes here.
*
* @return bool True if acceptable, false if not acceptable.
*/
public static function validateRegistrantEmailAddress(string $nickname, string $emailAddress, string &$resultComment = null): bool {
public static function validateRegistrantEmailAddress(?string $nickname, ?string $emailAddress, ?string &$resultComment = null): bool {
// CleanTalk filter
if (file_exists(ABSPATH . '/wp-content/plugins/cleantalk-spam-protect/cleantalk.php')
|| function_exists('ct_test_registration')) {
Expand All @@ -755,15 +755,15 @@ public static function validateRegistrantEmailAddress(string $nickname, string $
/**
* Determine if an email address or user should be accepted as a new registrant. (e.g. informal auth)
*
* @param string $nickname
* @param string $emailAddress
* @param string $message
* @param ?string $resultComment If a spam provider provides a comment about why content was allowed or rejected,
* @param ?string $nickname
* @param ?string $emailAddress
* @param ?string $message
* @param ?string $resultComment If a spam provider provides a comment about why content was allowed or rejected,
* it goes here.
*
* @return bool True if acceptable, false if not acceptable.
*/
public static function validateMessage(string $nickname, string $emailAddress, string $message, string &$resultComment = null): bool
public static function validateMessage(?string $nickname, ?string $emailAddress, ?string $message, ?string &$resultComment = null): bool
{
// CleanTalk filter
if (file_exists(ABSPATH . '/wp-content/plugins/cleantalk-spam-protect/cleantalk.php')
Expand Down
2 changes: 1 addition & 1 deletion src/python/WebApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import linecache
import sys

VERSION = "0.0.35"
VERSION = "0.0.36"

sgContactEvName = "Contact"

Expand Down
2 changes: 1 addition & 1 deletion touchpoint-wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Plugin URI: https://github.com/tenthpres/touchpoint-wp
Update URI: https://github.com/tenthpres/touchpoint-wp
Description: A WordPress Plugin for integrating with TouchPoint Church Management Software.
Version: 0.0.35
Version: 0.0.36
Author: James K
Author URI: https://github.com/jkrrv
License: AGPLv3+
Expand Down

0 comments on commit 8fccb2d

Please sign in to comment.