Plugin Directory

Changeset 3320677


Ignore:
Timestamp:
07/01/2025 01:39:03 PM (9 months ago)
Author:
trustcaptcha
Message:

Fix Elementor Pro Bug

Location:
trustcaptcha/trunk
Files:
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • trustcaptcha/trunk/global.d.ts

    r3254866 r3320677  
    55  function jQuery(args: any);
    66}
    7 
    87export {};
  • trustcaptcha/trunk/phpcs.xml

    r3254866 r3320677  
    11<?xml version="1.0"?>
    22<ruleset name="WordPress Plugin Coding Standards">
    3     <!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
    4 
    5     <!--
    6     Prevent errors caused by WordPress Coding Standards not supporting PHP 8.0+.
    7     See https://github.com/WordPress/WordPress-Coding-Standards/issues/2035
    8     -->
    93    <ini name="error_reporting" value="E_ALL &#38; ~E_DEPRECATED" />
    10 
    11     <description>Wordpress plugin rules</description>
    12 
     4    <description>WordPress Plugin Rules</description>
    135    <file>.</file>
    14     <!-- Exclude paths -->
    156    <exclude-pattern>*/\.github/*</exclude-pattern>
    167    <exclude-pattern>*/\.wordpress-org/*</exclude-pattern>
     
    2112    <exclude-pattern>*/ts/*</exclude-pattern>
    2213    <exclude-pattern>*/styles/*</exclude-pattern>
    23 
    2414    <config name="minimum_supported_wp_version" value="5.9.3" />
    25 
    26     <!-- @see https://github.com/PHPCompatibility/PHPCompatibility#using-a-custom-ruleset -->
    2715    <config name="testVersion" value="8.0-" />
    28     <!-- @see https://github.com/PHPCompatibility/PHPCompatibilityWP#how-to-use -->
    29     <!-- <rule ref="PHPCompatibilityWP" /> -->
    30 
    3116    <rule ref="WordPress">
    32 
    3317        <exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
    3418        <exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
    3519        <exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed" />
    36 
    3720        <exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
    3821        <exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
     
    4326        <exclude name="Squiz.Commenting.ClassComment.Missing" />
    4427    </rule>
    45 
    4628    <rule ref="WordPress.Files.FileName.InvalidClassFileName">
    4729        <severity>0</severity>
  • trustcaptcha/trunk/readme.txt

    r3317636 r3320677  
    55Tested up to: 6.8
    66Requires PHP: 7.0
    7 Stable tag: 2.0.0
     7Stable tag: 2.0.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7575== Changelog ==
    7676
     77= 2.0.1 =
     78* Fix Elementor Pro Bug
     79
    7780= 2.0.0 =
    7881* TrustCaptcha in now part of TrustComponent
     
    106109== Upgrade Notice ==
    107110
     111= 2.0.1 =
     112* Fix Elementor Pro Bug
     113
    108114= 2.0.0 =
    109115* TrustCaptcha in now part of TrustComponent
  • trustcaptcha/trunk/src/php/Plugins/Elementor/ElementorForms.php

    r3317636 r3320677  
    7979
    8080        if ( static::is_enabled() ) {
    81             $this->enqueue_scripts();
    8281            $html .= Trustcaptcha::get_html();
    8382        } elseif ( current_user_can( 'manage_options' ) ) {
     
    121120    }
    122121
    123     public function load_scripts()
     122    public function load_scripts(): void
    124123    {
    125124        wp_enqueue_script(
    126125            'trustcaptcha-elementor',
    127126            constant( 'TRUSTCAPTCHA_BASE_URL' ) . '/assets/js/elementor.js',
    128             [],
     127            [ 'jquery', 'trustcaptcha-form' ],
    129128            PLUGIN_VERSION,
    130129            true
  • trustcaptcha/trunk/src/php/Settings/General.php

    r3317636 r3320677  
    3535            'group'     => $group,
    3636            'type'      => 'number',
    37             'min'       => 0,
     37            'min'       => 0.2,
    3838            'max'       => 1,
    3939            'step'      => 0.05,
    40             'description' => __( 'The bot score is always between 0 (probably a human) and 1 (probably a bot or spam). The lower the threshold, the more secure the bot protection.', 'trustcaptcha-for-forms' ),
     40            'description' => __( 'The bot score is always between 0 (probably a human) and 1 (probably a bot or spam). The lower the threshold, the more secure the bot protection. Start value recommendation: 0.5', 'trustcaptcha-for-forms' ),
    4141        ]);
    4242
  • trustcaptcha/trunk/src/php/Trustcaptcha.php

    r3317636 r3320677  
    1616                margin-bottom: 16px;
    1717            }
    18 
    1918            .trustcaptcha[data-invisible="true"] {
    2019                margin-bottom: 0;
     
    4039        ob_start();
    4140        self::get_html();
    42 
    4341        return ob_get_clean();
    4442    }
     
    156154    public static function validateCaptchaWithPostVerificationToken(): ValidationResponse
    157155    {
    158 
    159156        if ( ! isset( $_POST['tc-verification-token'] ) ) {
    160157            return new ValidationResponse(false, 'CAPTCHA has not yet been completed. Please wait until the CAPTCHA has been passed.');
  • trustcaptcha/trunk/trustcaptcha.php

    r3317636 r3320677  
    77 * Plugin Name:           TrustCaptcha for WordPress
    88 * Plugin URI:            https://www.trustcomponent.com/en/products/captcha/integrations/wordpress-captcha-plugin
    9  * Description:           Privacy-friendly CAPTCHA solution with bot score. Protect your website from bot attacks and spam with our invisible and GDPR-compliant reCAPTCHA alternative. Benefit from our multi-layered security concept with proof-of-work and intelligent bot score for reliable bot detection.
    10  * Version:               2.0.0
     9 * Description:           Privacy-friendly CAPTCHA alternative with bot score. Protect your website from bot attacks and spam with our invisible and GDPR-compliant reCAPTCHA alternative. Benefit from our multi-layered security concept with proof-of-work and intelligent bot score for reliable bot detection.
     10 * Version:               2.0.1
    1111 * Author:                TrustComponent
    1212 * Author URI:            https://www.trustcomponent.com
     
    3131
    3232const TRUSTCAPTCHA_BASE_FILE = __FILE__;
    33 const PLUGIN_VERSION = '2.0.0';
     33const PLUGIN_VERSION = '2.0.1';
    3434
    3535require 'vendor/autoload.php';
     
    4343    return $trustcaptcha;
    4444}
    45 
    4645trustcaptcha()->setup();
  • trustcaptcha/trunk/vendor/composer/installed.php

    r3317636 r3320677  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'fb9470c51b7c0bbefa3b774e4cb846774fdc2594',
     6        'reference' => 'b3c852dea7aaa5cc779b6ba3de933610d4f9c583',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    3232            'pretty_version' => 'dev-master',
    3333            'version' => 'dev-master',
    34             'reference' => 'fb9470c51b7c0bbefa3b774e4cb846774fdc2594',
     34            'reference' => 'b3c852dea7aaa5cc779b6ba3de933610d4f9c583',
    3535            'type' => 'wordpress-plugin',
    3636            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.