Changeset 3378064
- Timestamp:
- 10/14/2025 11:13:42 AM (6 months ago)
- Location:
- spam-prevention-for-contact-form-7-and-comments/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
public/sitelint-public.php (modified) (1 diff)
-
sitelint.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spam-prevention-for-contact-form-7-and-comments/trunk/README.txt
r3377693 r3378064 4 4 Requires at least: 4.7 5 5 Tested up to: 6.8.3 6 Stable tag: 1.3.1 86 Stable tag: 1.3.19 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 27 27 28 28 == 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. 29 33 30 34 = 1.3.18 = -
spam-prevention-for-contact-form-7-and-comments/trunk/public/sitelint-public.php
r3377693 r3378064 45 45 public function initialisePreventionForCF7() 46 46 { 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 47 59 add_action('wp_print_footer_scripts', 'modifyContactForm7FormActionUrl', 1); 48 60 function modifyContactForm7FormActionUrl() -
spam-prevention-for-contact-form-7-and-comments/trunk/sitelint.php
r3377693 r3378064 10 10 * Plugin Name: Spam Prevention for Contact Form 7 and Comments 11 11 * Description: Automatic Spam Prevention for Contact Form 7 and Comments 12 * Version: 1.3.1 812 * Version: 1.3.19 13 13 * Author: SiteLint 14 14 * Author URI: https://www.sitelint.com … … 27 27 * Currently plugin version. Use SemVer - https://semver.org 28 28 */ 29 define('SLSP_SITELINT_VERSION', '1.3.1 8');29 define('SLSP_SITELINT_VERSION', '1.3.19'); 30 30 31 31 /**
Note: See TracChangeset
for help on using the changeset viewer.