Plugin Directory

Changeset 2450075


Ignore:
Timestamp:
01/04/2021 06:08:06 PM (5 years ago)
Author:
concertedaction
Message:

upgrade to 1.2.1. Added Gutenberg Editor button. Bug fix relatd to hCaptcha.

Location:
wp-action-network/trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • wp-action-network/trunk/actionnetwork.php

    r2370598 r2450075  
    22/*
    33 * @package ActionNetwork
    4  * @version 1.2
     4 * @version 1.2.1
    55 *
    66 * Plugin Name: Action Network
     
    3434 */
    3535global $actionnetwork_version;
    36 $actionnetwork_version = '1.2';
     36$actionnetwork_version = '1.2.1';
    3737global $actionnetwork_db_version;
    3838$actionnetwork_db_version = '1.0.7';
     
    5252
    5353                // test for particular updates here
     54        if ($actionnetwork_version == '1.2.1') {
     55            $notices[] = sprintf(
     56                /* translators: %s is a link to https://wordpress.org/plugins/wp-action-network/ */
     57                __('The %s has been updated to version 1.2.1. This update provides a Gutenberg Editor button as well as a bug fix related to hCaptcha.', 'actionnetwork'),
     58                '<a href="https://wordpress.org/plugins/wp-action-network/">Action Network plugin</a>'
     59                );
     60        }
     61
    5462        if ($actionnetwork_version == '1.2') {
    5563            $notices[] = sprintf(
  • wp-action-network/trunk/includes/actionnetwork-widgets.class.php

    r2370598 r2450075  
    614614        $zip_code = isset($submission['zip_code']) ? $submission['zip_code'] : '';
    615615        $errors = isset($submission['errors']) ? $submission['errors'] : array();
     616        $spam_protect = true;
    616617       
    617618        wp_enqueue_style( 'actionnetwork-signup-css', plugins_url('../signup.css', __FILE__) );
     
    636637            'item_element' => 'li',
    637638            'item_class' => 'actionnetwork-signup-item',
    638             'spam_protect' => 0,
     639            'spam_protect' => 1,
    639640        );
    640641        foreach ($defaults as $key => $value) {
     
    723724        if ( $data === null ) { $data = $_REQUEST; }
    724725       
     726        $spam_protect = true;
     727        if($spam_protect){
     728            //wp_enqueue_script( 'actionnetwork-hcaptcha', 'https://www.hCaptcha.com/1/api.js' );
     729            $hcaptcha_site_key = get_option('actionnetwork_hcaptcha_site_key');
     730            $hcaptcha_secret_key = get_option('actionnetwork_hcaptcha_secret_key');
     731        }
     732       
    725733        // check for nonce
    726734        if ( ! isset( $data['actionnetwork_signup_nonce_field'] ) ||
     
    738746        // verify
    739747        $submission['errors'] = array();
    740 
     748       
    741749        // Check for captcha result
    742750        if($spam_protect){
  • wp-action-network/trunk/readme.txt

    r2370598 r2450075  
    33Tags: signup, events, action network, online organizing
    44Requires at least: 4.6
    5 Tested up to: 5.5
    6 Stable tag: 1.2
     5Tested up to: 5.6
     6Stable tag: 1.2.1
    77License: GPLv3 or later
    88License URI: https://www.gnu.org/licenses/gpl.html
     
    4444== Changelog ==
    4545
     46= 1.2.1 =
     47
     48* Added Gutenberg Editor button.
     49* Bug fix relatd to hCaptcha.
     50
    4651= 1.2 =
    4752
     
    7580== Upgrade Notice ==
    7681
     82= 1.2.1 =
     83
     84Added Gutenberg Editor button.
     85
     86= 1.2 =
     87
     88This major update includes the following updates:
     89hCaptcha ability added for API based forms.
     90shortcode button for tinymce WYSIWYG.
     91
    7792= 1.1.1 =
    7893Fixed problem which would cause updates from wordpress.org to crash
     
    86101= 1.0 =
    87102Install from wordpress.org to stay up-to-date
    88 
    89 
Note: See TracChangeset for help on using the changeset viewer.