Changeset 2646879
- Timestamp:
- 12/20/2021 03:39:36 PM (3 years ago)
- Location:
- bs-spam-protector/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
bs-spam-protector/trunk/README.txt
r2646847 r2646879 5 5 Requires at least: 5.7.2 6 6 Tested up to: 5.8.2 7 Stable tag: 1.6. 07 Stable tag: 1.6.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 17 17 18 18 == Changelog == 19 20 = 1.6.1 = 21 * After the plugin update, the time interval for filling out forms is set to 12 hours for the validator to work correctly. 19 22 20 23 = 1.6.0 = -
bs-spam-protector/trunk/bs-spam-protector.php
r2646847 r2646879 16 16 * Plugin Name: BS SPAM Protector 17 17 * Description: This plugin protects Contact Form 7 from spam. 18 * Version: 1.6. 018 * Version: 1.6.1 19 19 * Author: Oleg Sokolov 20 20 * Author URI: https://neuropassenger.ru … … 35 35 * Rename this for your plugin and update it as you release new versions. 36 36 */ 37 define( 'BS_SPAM_PROTECTOR_VERSION', '1.6. 0' );37 define( 'BS_SPAM_PROTECTOR_VERSION', '1.6.1' ); 38 38 39 39 /** -
bs-spam-protector/trunk/includes/class-bs-spam-protector.php
r2646847 r2646879 179 179 $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); 180 180 181 $this->loader->add_action( 'plugins_loaded', $plugin_public, 'do_upgrade' ); 182 181 183 $this->loader->add_action( 'wp_ajax_bs_get_validation_key', $plugin_public, 'ajax_get_validation_key' ); 182 184 $this->loader->add_action( 'wp_ajax_nopriv_bs_get_validation_key', $plugin_public, 'ajax_get_validation_key' ); … … 185 187 186 188 $this->loader->add_filter( 'wpcf7_spam', $plugin_public, 'is_spam_submission' ); 187 188 //$this->loader->add_action( 'load-flamingo_page_flamingo_inbound', $plugin_public, 'add_spam_protector_flamingo_meta_box' );189 189 $this->loader->add_filter( 'flamingo_add_inbound', $plugin_public, 'prepare_data_for_flamingo_inbound' ); 190 190 -
bs-spam-protector/trunk/public/class-bs-spam-protector-public.php
r2646847 r2646879 404 404 } 405 405 406 function prepare_data_for_flamingo_inbound( $args ) {406 public function prepare_data_for_flamingo_inbound( $args ) { 407 407 // Let's save SPAM Protector fields to the meta section 408 408 $args['meta']['bs_hf_nonce'] = $args['fields']['bs_hf_nonce']; … … 424 424 } 425 425 426 public function do_upgrade() { 427 // Expiration interval 428 $expiration_interval = get_option( 'bs_spam_protector_expiration_interval', false ); 429 430 if ( version_compare( $this->version, '1.6.0', '>=' ) && $expiration_interval == false ) { 431 update_option( 'bs_spam_protector_expiration_interval', 12 ); 432 } 433 } 434 426 435 }
Note: See TracChangeset
for help on using the changeset viewer.