Plugin Directory

Changeset 2851826


Ignore:
Timestamp:
01/20/2023 11:45:48 AM (2 years ago)
Author:
friendlycaptcha
Message:

Update to version 1.8.1 from GitHub

Location:
friendly-captcha
Files:
2 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • friendly-captcha/tags/1.8.1/friendly-captcha.php

    r2824232 r2851826  
    44 * Plugin Name: Friendly Captcha for WordPress
    55 * Description: Protect WordPress website forms from spam and abuse with Friendly Captcha, a privacy-first anti-bot solution.
    6  * Version: 1.8.0
     6 * Version: 1.8.1
    77 * Requires at least: 5.0
    88 * Requires PHP: 7.3
  • friendly-captcha/tags/1.8.1/includes/verification.php

    r2521937 r2851826  
    4848
    4949        $errorCodes = isset( $response_body['errors'] )
    50             ? reset($response_body['errors'])
     50            ? $response_body['errors']
    5151            : array();
    5252
  • friendly-captcha/tags/1.8.1/modules/gravityforms/field.php

    r2824232 r2851826  
    8585
    8686        frcaptcha_enqueue_widget_scripts();
     87
     88        wp_enqueue_script(
     89            'frcaptcha_gravity_forms-friendly-captcha',
     90            plugin_dir_url(__FILE__) . 'script.js',
     91            array('friendly-captcha-widget-module', 'friendly-captcha-widget-fallback'),
     92            FriendlyCaptcha_Plugin::$version,
     93            true
     94        );
    8795           
    8896        add_action( 'gform_preview_footer', array( $this, 'ensure_frcaptcha_init' ) );
     
    154162            $this->failed_validation  = true;
    155163            $this->validation_message = FriendlyCaptcha_Plugin::default_error_user_message();
    156             GFCommon::log_debug( __METHOD__ . '(): Validating the Friendly Captcha response has failed due to the following: ' . $verification["error_codes"] );
     164            GFCommon::log_debug( __METHOD__ . '(): Validating the Friendly Captcha response has failed due to the following: ' . reset($verification["error_codes"]) );
    157165            return;
    158166        }
  • friendly-captcha/tags/1.8.1/readme.txt

    r2824232 r2851826  
    55Tested up to: 6.1
    66Requires PHP: 7.3
    7 Stable tag: 1.8.0
     7Stable tag: 1.8.1
    88License: GPL v2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html 
     
    7878* Ultimate Member Register Form
    7979* Ultimate Member Reset Password Form
    80 * WooCommerce Login Form
    8180* WooCommerce Register Form
    8281* WooCommerce Checkout Form
     
    8988
    9089== Changelog ==
     90
     91= 1.8.1 =
     92* Fix internal error becauses of wrong error_codes type
     93* Temporarily removed WooCommerce Login Form from the supported forms
     94* Fix gravity forms multi page forms
    9195
    9296= 1.8.0 =
  • friendly-captcha/trunk/friendly-captcha.php

    r2824232 r2851826  
    44 * Plugin Name: Friendly Captcha for WordPress
    55 * Description: Protect WordPress website forms from spam and abuse with Friendly Captcha, a privacy-first anti-bot solution.
    6  * Version: 1.8.0
     6 * Version: 1.8.1
    77 * Requires at least: 5.0
    88 * Requires PHP: 7.3
  • friendly-captcha/trunk/includes/verification.php

    r2521937 r2851826  
    4848
    4949        $errorCodes = isset( $response_body['errors'] )
    50             ? reset($response_body['errors'])
     50            ? $response_body['errors']
    5151            : array();
    5252
  • friendly-captcha/trunk/modules/gravityforms/field.php

    r2824232 r2851826  
    8585
    8686        frcaptcha_enqueue_widget_scripts();
     87
     88        wp_enqueue_script(
     89            'frcaptcha_gravity_forms-friendly-captcha',
     90            plugin_dir_url(__FILE__) . 'script.js',
     91            array('friendly-captcha-widget-module', 'friendly-captcha-widget-fallback'),
     92            FriendlyCaptcha_Plugin::$version,
     93            true
     94        );
    8795           
    8896        add_action( 'gform_preview_footer', array( $this, 'ensure_frcaptcha_init' ) );
     
    154162            $this->failed_validation  = true;
    155163            $this->validation_message = FriendlyCaptcha_Plugin::default_error_user_message();
    156             GFCommon::log_debug( __METHOD__ . '(): Validating the Friendly Captcha response has failed due to the following: ' . $verification["error_codes"] );
     164            GFCommon::log_debug( __METHOD__ . '(): Validating the Friendly Captcha response has failed due to the following: ' . reset($verification["error_codes"]) );
    157165            return;
    158166        }
  • friendly-captcha/trunk/readme.txt

    r2824232 r2851826  
    55Tested up to: 6.1
    66Requires PHP: 7.3
    7 Stable tag: 1.8.0
     7Stable tag: 1.8.1
    88License: GPL v2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html 
     
    7878* Ultimate Member Register Form
    7979* Ultimate Member Reset Password Form
    80 * WooCommerce Login Form
    8180* WooCommerce Register Form
    8281* WooCommerce Checkout Form
     
    8988
    9089== Changelog ==
     90
     91= 1.8.1 =
     92* Fix internal error becauses of wrong error_codes type
     93* Temporarily removed WooCommerce Login Form from the supported forms
     94* Fix gravity forms multi page forms
    9195
    9296= 1.8.0 =
Note: See TracChangeset for help on using the changeset viewer.