Plugin Directory

Changeset 2986098


Ignore:
Timestamp:
10/30/2023 12:14:35 PM (17 months ago)
Author:
friendlycaptcha
Message:

Update to version 1.12.0 from GitHub

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

Legend:

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

    r2953082 r2986098  
    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.11.0
     6 * Version: 1.12.0
    77 * Requires at least: 5.0
    88 * Requires PHP: 7.3
     
    2020}
    2121
    22 define('FRIENDLY_CAPTCHA_VERSION', '1.11.0');
     22define('FRIENDLY_CAPTCHA_VERSION', '1.12.0');
    2323define('FRIENDLY_CAPTCHA_FRIENDLY_CHALLENGE_VERSION', '0.9.12');
    2424define('FRIENDLY_CAPTCHA_SUPPORTED_LANGUAGES', [
  • friendly-captcha/tags/1.12.0/includes/core.php

    r2953082 r2986098  
    2020        public static $option_sitekey_name = "frcaptcha_sitekey";
    2121        public static $option_api_key_name = "frcaptcha_api_key";
    22         public static $option_skip_style_injection = "frcaptcha_skip_style_injection";
     22        public static $option_skip_style_injection_name = "frcaptcha_skip_style_injection";
     23        public static $option_enable_mutation_observer_name = "frcaptcha_enable_mutation_observer";
    2324
    2425        // Integrations
     
    9899
    99100        public function get_skip_style_injection() {
    100             return get_option(FriendlyCaptcha_Plugin::$option_skip_style_injection) == 1;
     101            return get_option(FriendlyCaptcha_Plugin::$option_skip_style_injection_name) == 1;
     102        }
     103
     104        public function get_enable_mutation_observer() {
     105            return get_option(FriendlyCaptcha_Plugin::$option_enable_mutation_observer_name) == 1;
    101106        }
    102107
  • friendly-captcha/tags/1.12.0/includes/settings.php

    r2953082 r2986098  
    1717        register_setting(
    1818            FriendlyCaptcha_Plugin::$option_group,
    19             FriendlyCaptcha_Plugin::$option_skip_style_injection
     19            FriendlyCaptcha_Plugin::$option_skip_style_injection_name
     20        );
     21        register_setting(
     22            FriendlyCaptcha_Plugin::$option_group,
     23            FriendlyCaptcha_Plugin::$option_enable_mutation_observer_name
    2024        );
    2125
     
    573577            'frcaptcha_widget_settings_section',
    574578            array(
    575                 "option_name" => FriendlyCaptcha_Plugin::$option_skip_style_injection,
     579                "option_name" => FriendlyCaptcha_Plugin::$option_skip_style_injection_name,
    576580                "description" => "Don't load the CSS-Styles for the widget. Use this if you want to style the widget yourself.",
    577581                "type" => "checkbox"
    578582            )
    579583        );
     584
     585        add_settings_field(
     586            'frcaptcha_settings_mutation_observer',
     587            'Dynamically Initialize', 'frcaptcha_settings_field_callback',
     588            'friendly_captcha_admin',
     589            'frcaptcha_widget_settings_section',
     590            array(
     591                "option_name" => FriendlyCaptcha_Plugin::$option_enable_mutation_observer_name,
     592                "description" => "Make Friendly Captcha look for new widgets that are dynamically added to the page.<br>Enable this when you are using Friendly Captcha in a popup or a multi-step form.",
     593                "type" => "checkbox"
     594            )
     595        );
     596
    580597
    581598        /* Endpoint section */
  • friendly-captcha/tags/1.12.0/public/widgets.php

    r2824232 r2986098  
    2525        true
    2626    );
     27
     28    if ( $plugin->get_enable_mutation_observer() ) {
     29        wp_enqueue_script( 'friendly-captcha-mutation-observer',
     30            plugin_dir_url( __FILE__ ) . 'mutation-observer.js',
     31            array(),
     32            $version,
     33            true
     34        );
     35    }
    2736}
    2837
  • friendly-captcha/tags/1.12.0/readme.txt

    r2953082 r2986098  
    55Tested up to: 6.3
    66Requires PHP: 7.3
    7 Stable tag: 1.11.0
     7Stable tag: 1.12.0
    88License: GPL v2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html 
     
    9595== Changelog ==
    9696
     97= 1.12.0 =
     98* Support widgets that are dynamically added to the page (e.g. popups or multi-step forms)
     99
    97100= 1.11.0 =
    98101* Add support for Forge12 Contact Form 7 Double Opt-In
  • friendly-captcha/trunk/friendly-captcha.php

    r2953082 r2986098  
    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.11.0
     6 * Version: 1.12.0
    77 * Requires at least: 5.0
    88 * Requires PHP: 7.3
     
    2020}
    2121
    22 define('FRIENDLY_CAPTCHA_VERSION', '1.11.0');
     22define('FRIENDLY_CAPTCHA_VERSION', '1.12.0');
    2323define('FRIENDLY_CAPTCHA_FRIENDLY_CHALLENGE_VERSION', '0.9.12');
    2424define('FRIENDLY_CAPTCHA_SUPPORTED_LANGUAGES', [
  • friendly-captcha/trunk/includes/core.php

    r2953082 r2986098  
    2020        public static $option_sitekey_name = "frcaptcha_sitekey";
    2121        public static $option_api_key_name = "frcaptcha_api_key";
    22         public static $option_skip_style_injection = "frcaptcha_skip_style_injection";
     22        public static $option_skip_style_injection_name = "frcaptcha_skip_style_injection";
     23        public static $option_enable_mutation_observer_name = "frcaptcha_enable_mutation_observer";
    2324
    2425        // Integrations
     
    9899
    99100        public function get_skip_style_injection() {
    100             return get_option(FriendlyCaptcha_Plugin::$option_skip_style_injection) == 1;
     101            return get_option(FriendlyCaptcha_Plugin::$option_skip_style_injection_name) == 1;
     102        }
     103
     104        public function get_enable_mutation_observer() {
     105            return get_option(FriendlyCaptcha_Plugin::$option_enable_mutation_observer_name) == 1;
    101106        }
    102107
  • friendly-captcha/trunk/includes/settings.php

    r2953082 r2986098  
    1717        register_setting(
    1818            FriendlyCaptcha_Plugin::$option_group,
    19             FriendlyCaptcha_Plugin::$option_skip_style_injection
     19            FriendlyCaptcha_Plugin::$option_skip_style_injection_name
     20        );
     21        register_setting(
     22            FriendlyCaptcha_Plugin::$option_group,
     23            FriendlyCaptcha_Plugin::$option_enable_mutation_observer_name
    2024        );
    2125
     
    573577            'frcaptcha_widget_settings_section',
    574578            array(
    575                 "option_name" => FriendlyCaptcha_Plugin::$option_skip_style_injection,
     579                "option_name" => FriendlyCaptcha_Plugin::$option_skip_style_injection_name,
    576580                "description" => "Don't load the CSS-Styles for the widget. Use this if you want to style the widget yourself.",
    577581                "type" => "checkbox"
    578582            )
    579583        );
     584
     585        add_settings_field(
     586            'frcaptcha_settings_mutation_observer',
     587            'Dynamically Initialize', 'frcaptcha_settings_field_callback',
     588            'friendly_captcha_admin',
     589            'frcaptcha_widget_settings_section',
     590            array(
     591                "option_name" => FriendlyCaptcha_Plugin::$option_enable_mutation_observer_name,
     592                "description" => "Make Friendly Captcha look for new widgets that are dynamically added to the page.<br>Enable this when you are using Friendly Captcha in a popup or a multi-step form.",
     593                "type" => "checkbox"
     594            )
     595        );
     596
    580597
    581598        /* Endpoint section */
  • friendly-captcha/trunk/public/widgets.php

    r2824232 r2986098  
    2525        true
    2626    );
     27
     28    if ( $plugin->get_enable_mutation_observer() ) {
     29        wp_enqueue_script( 'friendly-captcha-mutation-observer',
     30            plugin_dir_url( __FILE__ ) . 'mutation-observer.js',
     31            array(),
     32            $version,
     33            true
     34        );
     35    }
    2736}
    2837
  • friendly-captcha/trunk/readme.txt

    r2953082 r2986098  
    55Tested up to: 6.3
    66Requires PHP: 7.3
    7 Stable tag: 1.11.0
     7Stable tag: 1.12.0
    88License: GPL v2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html 
     
    9595== Changelog ==
    9696
     97= 1.12.0 =
     98* Support widgets that are dynamically added to the page (e.g. popups or multi-step forms)
     99
    97100= 1.11.0 =
    98101* Add support for Forge12 Contact Form 7 Double Opt-In
Note: See TracChangeset for help on using the changeset viewer.