Changeset 3262726
- Timestamp:
- 03/27/2025 10:20:43 AM (12 months ago)
- Location:
- contact-form-7-freebie/trunk
- Files:
-
- 3 edited
-
contact-form-7-freebie.php (modified) (1 diff)
-
inc/ContactForm7ReCaptcha.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contact-form-7-freebie/trunk/contact-form-7-freebie.php
r2515279 r3262726 5 5 Plugin URI: http://munyagu.com/contact-form-7-freebie/ 6 6 Description: Add a little functionality to the Contact Form 7 7 Version: 1.1. 67 Version: 1.1.7 8 8 Author: munyagu 9 9 Author URI: http://munyagu.com/ -
contact-form-7-freebie/trunk/inc/ContactForm7ReCaptcha.php
r2450337 r3262726 3 3 class ContactForm7ReCaptcha { 4 4 5 const pattern = '/ form.+?id=\"wpcf7\-/';5 const pattern = '/input.+?name=\"_wpcf7"/'; 6 6 7 7 public static function init() { 8 8 9 9 add_action( 'wp_head', array( __CLASS__, 'wp_head' ) ); 10 add_action( 'wp_footer', array( __CLASS__, 'wp_footer' ) );10 add_action( 'wp_footer', array( __CLASS__, 'wp_footer' ), 999 ); 11 11 12 12 } … … 43 43 var logo = mutation.addedNodes[0].firstChild; 44 44 if( null !== logo && 'grecaptcha-badge' === logo.className ) { 45 logo.class Name = 'grecaptcha-badge grecaptcha-hide';45 logo.classList.add('grecaptcha-hide'); 46 46 observer.disconnect(); 47 47 } … … 63 63 if( class_exists( 'WPCF7_RECAPTCHA' ) ) { 64 64 $service = WPCF7_RECAPTCHA::get_instance(); 65 $ recaptcha = get_option( ContactForm7Freebie::$f_field_remove_recaptcha_badge );65 $hide_recaptcha = get_option( ContactForm7Freebie::$f_field_remove_recaptcha_badge ); 66 66 67 return $service->is_active() && '1' === $ recaptcha;67 return $service->is_active() && '1' === $hide_recaptcha; 68 68 } else { 69 69 return false; 70 70 } 71 72 71 } 73 72 -
contact-form-7-freebie/trunk/readme.txt
r2825007 r3262726 1 1 === Freebie for Contact Form 7 === 2 2 Contributors: munyagu 3 Donate link: https://munyagu.com/donate/4 3 Tags: form 5 4 Requires at least: 4.9 6 Tested up to: 6. 1.17 Stable tag: 1.1. 65 Tested up to: 6.7.2 6 Stable tag: 1.1.7 8 7 License: GPLv2 or later 9 8 License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 33 32 == Changelog == 34 33 34 = 1.1.7 = 35 Fix determining if a form has been inserted. 36 35 37 = 1.1.6 = 36 38 Change plugin name. … … 55 57 Add Hide reCaptcha badge except in forms. 56 58 57 58 59 = 1.0.0 = 59 60 First release.
Note: See TracChangeset
for help on using the changeset viewer.