Plugin Directory

Changeset 3378064


Ignore:
Timestamp:
10/14/2025 11:13:42 AM (6 months ago)
Author:
ctomczyk
Message:

Release trunk 1.3.19

Location:
spam-prevention-for-contact-form-7-and-comments/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • spam-prevention-for-contact-form-7-and-comments/trunk/README.txt

    r3377693 r3378064  
    44Requires at least: 4.7
    55Tested up to: 6.8.3
    6 Stable tag: 1.3.18
     6Stable tag: 1.3.19
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2727
    2828== Changelog ==
     29
     30= 1.3.19 =
     31
     32* Preventing false-positive "Sending mail has been aborted" errors in Contact Form 7 when no wp_footer() hook is available.
    2933
    3034= 1.3.18 =
  • spam-prevention-for-contact-form-7-and-comments/trunk/public/sitelint-public.php

    r3377693 r3378064  
    4545    public function initialisePreventionForCF7()
    4646    {
     47      // Detect if the current theme calls wp_footer() at all.
     48      global $wp_filter;
     49      $footer_hook_exists = isset($wp_filter['wp_footer']) || isset($wp_filter['wp_print_footer_scripts']);
     50
     51      // If wp_footer() is missing, skip the prevention to avoid aborting all CF7 submissions.
     52      if (!$footer_hook_exists) {
     53          if (defined('WP_DEBUG') && WP_DEBUG) {
     54              error_log('[SiteLintSpamPrevention] wp_footer() not found — skipping CF7 spam prevention initialization.');
     55          }
     56          return;
     57      }
     58
    4759      add_action('wp_print_footer_scripts', 'modifyContactForm7FormActionUrl', 1);
    4860      function modifyContactForm7FormActionUrl()
  • spam-prevention-for-contact-form-7-and-comments/trunk/sitelint.php

    r3377693 r3378064  
    1010 * Plugin Name:       Spam Prevention for Contact Form 7 and Comments
    1111 * Description:       Automatic Spam Prevention for Contact Form 7 and Comments
    12  * Version:           1.3.18
     12 * Version:           1.3.19
    1313 * Author:            SiteLint
    1414 * Author URI:        https://www.sitelint.com
     
    2727 * Currently plugin version. Use SemVer - https://semver.org
    2828 */
    29 define('SLSP_SITELINT_VERSION', '1.3.18');
     29define('SLSP_SITELINT_VERSION', '1.3.19');
    3030
    3131/**
Note: See TracChangeset for help on using the changeset viewer.