Changeset 3169708
- Timestamp:
- 10/16/2024 02:45:14 AM (17 months ago)
- Location:
- gravity-forms-zero-spam/trunk
- Files:
-
- 3 edited
-
gravityforms-zero-spam-form-settings.php (modified) (2 diffs)
-
gravityforms-zero-spam.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gravity-forms-zero-spam/trunk/gravityforms-zero-spam-form-settings.php
r3166697 r3169708 477 477 if ( $success ) { 478 478 $this->log_debug( __METHOD__ . '(): Spam report email sent successfully.' ); 479 update_option( self::REPORT_LAST_SENT_DATE_OPTION, current_time( 'timestamp' ) );479 update_option( self::REPORT_LAST_SENT_DATE_OPTION, current_time( 'timestamp', 1 ) ); 480 480 } else { 481 481 $this->log_error( __METHOD__ . '(): Spam report email failed to send.' ); … … 527 527 private function get_last_report_date( $date_format = 'Y-m-d' ) { 528 528 529 $last_report_timestamp = get_option( self::REPORT_LAST_SENT_DATE_OPTION, current_time( 'timestamp' ) );530 531 return date( $date_format, $last_report_timestamp );529 $last_report_timestamp = get_option( self::REPORT_LAST_SENT_DATE_OPTION, current_time( 'timestamp', 1 ) ); 530 531 return gmdate( $date_format, $last_report_timestamp ); 532 532 } 533 533 -
gravity-forms-zero-spam/trunk/gravityforms-zero-spam.php
r3166697 r3169708 4 4 * Plugin URI: https://www.gravitykit.com?utm_source=plugin&utm_campaign=zero-spam&utm_content=pluginuri 5 5 * Description: Enhance Gravity Forms to include effective anti-spam measures—without using a CAPTCHA. 6 * Version: 1.4. 36 * Version: 1.4.4 7 7 * Author: GravityKit 8 8 * Author URI: https://www.gravitykit.com?utm_source=plugin&utm_campaign=zero-spam&utm_content=authoruri … … 89 89 90 90 // Add the Zero Spam key to the partial entry if it's available in the POST data. 91 $submission['partial_entry']['gf_zero_spam_key'] = rgpost( 'gf_zero_spam_key' ); ;91 $submission['partial_entry']['gf_zero_spam_key'] = rgpost( 'gf_zero_spam_key' ); 92 92 93 93 return wp_json_encode( $submission ); … … 163 163 public function check_key_field( $is_spam = false, $form = array(), $entry = array() ) { 164 164 165 // If the user can edit entries, they're not a spammer. It may be spam, but it's their prerogative. 166 if ( GFCommon::current_user_can_any( 'gravityforms_edit_entries' ) ) { 167 return false; 168 } 169 165 170 $should_check_key_field = ! GFCommon::is_preview(); 166 171 … … 195 200 } 196 201 197 if ( ! isset( $_POST['gf_zero_spam_key'] ) || html_entity_decode( $_POST['gf_zero_spam_key']) !== $this->get_key() ) {202 if ( ! isset( $_POST['gf_zero_spam_key'] ) || html_entity_decode( sanitize_text_field( wp_unslash( $_POST['gf_zero_spam_key'] ) ) ) !== $this->get_key() ) { 198 203 add_action( 'gform_entry_created', array( $this, 'add_entry_note' ) ); 199 204 -
gravity-forms-zero-spam/trunk/readme.txt
r3166699 r3169708 1 1 === Gravity Forms Zero Spam === 2 2 Contributors: gravityview 3 Tags: gravity forms, gravity forms, anti-spam, antispam, spam, spam-blocker, spambot, spammer, add-ons, honeypot4 Requires at least: 4. 63 Tags: gravity forms, spam, captcha, honeypot, anti-spam 4 Requires at least: 4.7 5 5 Tested up to: 6.6.2 6 Stable tag: 1.4. 36 Stable tag: 1.4.4 7 7 Requires PHP: 5.2.6 8 8 License: GPLv2 or later … … 115 115 == Changelog == 116 116 117 = 1.4.3 on October 10, 2024 = 118 119 * Tweak: Changed the text domain for strings to `gravity-forms-zero-spam` to match the plugin slug 120 121 = 1.4.2 on October 10, 2024 = 117 = 1.4.4 on October 15, 2024 = 118 119 * Improved: Submissions by users who have the capability to edit Gravity Forms entries are no longer processed by Zero Spam (thanks for the idea, @richardjb62!) 120 * Fixed: Use GMT time for spam summary email reports to make sure the report is sent at the correct time 121 122 = 1.4.2 & 1.4.3 on October 10, 2024 = 122 123 123 124 * Improved: Sanitized form ID in JavaScript 124 * Fixed: Missing text domain for translation 125 * Modified: Changed the text domain for strings to `gravity-forms-zero-spam` to match the plugin slug 126 * Fixed: Added missing Text Domain header for translation 125 127 126 128 = 1.4.1 on November 10, 2023 =
Note: See TracChangeset
for help on using the changeset viewer.