Plugin Directory

Changeset 3254993


Ignore:
Timestamp:
03/12/2025 07:40:10 PM (13 months ago)
Author:
trustcaptcha
Message:

Fix some little bugs

Location:
trustcaptcha/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trustcaptcha/trunk/readme.txt

    r3254837 r3254993  
    55Tested up to: 6.7
    66Requires PHP: 7.0
    7 Stable tag: 1.0.0
     7Stable tag: 1.1.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • trustcaptcha/trunk/src/php/Plugins/Wordpress/LostPassword.php

    r3254866 r3254993  
    1212    {
    1313        add_action( 'lostpassword_form', [ Trustcaptcha::class, 'get_html' ] );
     14        add_action( 'login_head', [ Trustcaptcha::class, 'load_head' ] );
    1415        add_action( 'lostpassword_post', [ $this, 'validate_captcha' ], 10, 1 );
    1516    }
  • trustcaptcha/trunk/src/php/Settings/General.php

    r3254866 r3254993  
    199199        $field   = esc_attr( $args['label_for'] );
    200200        $type    = esc_attr( $args['type'] ?? 'number' );
    201         $value   = esc_attr( $options[ $field ] ?? '' );
    202201        $min     = esc_attr( $args['min'] );
    203202        $max     = esc_attr( $args['max'] );
    204203        $step    = esc_attr( $args['step'] );
     204        if ( 'field_threshold' === $field && !isset( $options[ $field ] ) ) {
     205            $value = '0.5';
     206        } else {
     207            $value = esc_attr( $options[ $field ] ?? '' );
     208        }
    205209
    206210        printf('<input id="%s" name="%s[%s]" type="%s" value="%s" min="%s" max="%s" step="%s">', $field, $group, $field, $type, $value, $min, $max, $step);
  • trustcaptcha/trunk/src/php/Settings/Plugins.php

    r3254866 r3254993  
    2121                'comment'       => __( 'Comment Form', 'trustcaptcha-for-forms' ),
    2222            ],
    23             'hint'      => __( 'Hinweis: Wenn das Login aktiviert ist, sollte der Threshold nicht unter 0.5 gesetzt werden, um eine versehentliche Aussperrung von Ihrer eigenen WordPress-Seite zu vermeiden.', 'trustcaptcha-for-forms' ),
     23            'hint'      => __( 'Note: Before you activate the login form - make sure that Trustcaptcha is configured correctly and the threshold is at best not below 0.5 so that you are not locked out of your own WordPress website.', 'trustcaptcha-for-forms' ),
    2424        ]);
    2525        add_settings_field('woocommerce', $this->get_plugin_logo( 'woocommerce' ), [ $this, 'render_plugin_field' ], $setting_plugins, $setting_plugins, [
     
    3434                'checkout'      => __( 'Checkout', 'trustcaptcha-for-forms' ),
    3535            ],
    36             'hint'      => __( 'Hinweis: Wenn das Login aktiviert ist, sollte der Threshold nicht unter 0.5 gesetzt werden, um eine versehentliche Aussperrung von Ihrer eigenen WordPress-Seite zu vermeiden.', 'trustcaptcha-for-forms' ),
     36            'hint'      => __( 'Note: Before you activate the login form - make sure that Trustcaptcha is configured correctly and the threshold is at best not below 0.5 so that you are not locked out of your own WordPress website.', 'trustcaptcha-for-forms' ),
    3737        ]);
    3838        add_settings_field('elementor', $this->get_plugin_logo( 'elementor' ), [ $this, 'render_plugin_field' ], $setting_plugins, $setting_plugins, [
  • trustcaptcha/trunk/trustcaptcha.php

    r3254837 r3254993  
    88 * Plugin URI:            https://docs.trustcaptcha.com/en/platforms/wordpress
    99 * Description:           GDPR-compliant reCAPTCHA 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:               1.1.0
     10 * Version:               1.1.1
    1111 * Author:                Trustcaptcha GmbH
    1212 * Author URI:            https://www.trustcaptcha.com
     
    3131
    3232const TRUSTCAPTCHA_BASE_FILE = __FILE__;
    33 const PLUGIN_VERSION = '1.1.0';
     33const PLUGIN_VERSION = '1.1.1';
    3434
    3535require 'vendor/autoload.php';
Note: See TracChangeset for help on using the changeset viewer.