Changeset 3320677
- Timestamp:
- 07/01/2025 01:39:03 PM (9 months ago)
- Location:
- trustcaptcha/trunk
- Files:
-
- 1 deleted
- 8 edited
-
global.d.ts (modified) (1 diff)
-
phpcs.xml (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
-
src/php/Plugins/Elementor/ElementorForms.php (modified) (2 diffs)
-
src/php/Settings/General.php (modified) (1 diff)
-
src/php/Trustcaptcha.php (modified) (3 diffs)
-
trustcaptcha.php (modified) (3 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
-
vendor/trustcaptcha (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trustcaptcha/trunk/global.d.ts
r3254866 r3320677 5 5 function jQuery(args: any); 6 6 } 7 8 7 export {}; -
trustcaptcha/trunk/phpcs.xml
r3254866 r3320677 1 1 <?xml version="1.0"?> 2 2 <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/20358 -->9 3 <ini name="error_reporting" value="E_ALL & ~E_DEPRECATED" /> 10 11 <description>Wordpress plugin rules</description> 12 4 <description>WordPress Plugin Rules</description> 13 5 <file>.</file> 14 <!-- Exclude paths -->15 6 <exclude-pattern>*/\.github/*</exclude-pattern> 16 7 <exclude-pattern>*/\.wordpress-org/*</exclude-pattern> … … 21 12 <exclude-pattern>*/ts/*</exclude-pattern> 22 13 <exclude-pattern>*/styles/*</exclude-pattern> 23 24 14 <config name="minimum_supported_wp_version" value="5.9.3" /> 25 26 <!-- @see https://github.com/PHPCompatibility/PHPCompatibility#using-a-custom-ruleset -->27 15 <config name="testVersion" value="8.0-" /> 28 <!-- @see https://github.com/PHPCompatibility/PHPCompatibilityWP#how-to-use -->29 <!-- <rule ref="PHPCompatibilityWP" /> -->30 31 16 <rule ref="WordPress"> 32 33 17 <exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" /> 34 18 <exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" /> 35 19 <exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed" /> 36 37 20 <exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" /> 38 21 <exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" /> … … 43 26 <exclude name="Squiz.Commenting.ClassComment.Missing" /> 44 27 </rule> 45 46 28 <rule ref="WordPress.Files.FileName.InvalidClassFileName"> 47 29 <severity>0</severity> -
trustcaptcha/trunk/readme.txt
r3317636 r3320677 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.0 7 Stable tag: 2.0. 07 Stable tag: 2.0.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 75 75 == Changelog == 76 76 77 = 2.0.1 = 78 * Fix Elementor Pro Bug 79 77 80 = 2.0.0 = 78 81 * TrustCaptcha in now part of TrustComponent … … 106 109 == Upgrade Notice == 107 110 111 = 2.0.1 = 112 * Fix Elementor Pro Bug 113 108 114 = 2.0.0 = 109 115 * TrustCaptcha in now part of TrustComponent -
trustcaptcha/trunk/src/php/Plugins/Elementor/ElementorForms.php
r3317636 r3320677 79 79 80 80 if ( static::is_enabled() ) { 81 $this->enqueue_scripts();82 81 $html .= Trustcaptcha::get_html(); 83 82 } elseif ( current_user_can( 'manage_options' ) ) { … … 121 120 } 122 121 123 public function load_scripts() 122 public function load_scripts(): void 124 123 { 125 124 wp_enqueue_script( 126 125 'trustcaptcha-elementor', 127 126 constant( 'TRUSTCAPTCHA_BASE_URL' ) . '/assets/js/elementor.js', 128 [ ],127 [ 'jquery', 'trustcaptcha-form' ], 129 128 PLUGIN_VERSION, 130 129 true -
trustcaptcha/trunk/src/php/Settings/General.php
r3317636 r3320677 35 35 'group' => $group, 36 36 'type' => 'number', 37 'min' => 0 ,37 'min' => 0.2, 38 38 'max' => 1, 39 39 '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' ), 41 41 ]); 42 42 -
trustcaptcha/trunk/src/php/Trustcaptcha.php
r3317636 r3320677 16 16 margin-bottom: 16px; 17 17 } 18 19 18 .trustcaptcha[data-invisible="true"] { 20 19 margin-bottom: 0; … … 40 39 ob_start(); 41 40 self::get_html(); 42 43 41 return ob_get_clean(); 44 42 } … … 156 154 public static function validateCaptchaWithPostVerificationToken(): ValidationResponse 157 155 { 158 159 156 if ( ! isset( $_POST['tc-verification-token'] ) ) { 160 157 return new ValidationResponse(false, 'CAPTCHA has not yet been completed. Please wait until the CAPTCHA has been passed.'); -
trustcaptcha/trunk/trustcaptcha.php
r3317636 r3320677 7 7 * Plugin Name: TrustCaptcha for WordPress 8 8 * Plugin URI: https://www.trustcomponent.com/en/products/captcha/integrations/wordpress-captcha-plugin 9 * Description: Privacy-friendly CAPTCHA solutionwith 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. 09 * 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 11 11 * Author: TrustComponent 12 12 * Author URI: https://www.trustcomponent.com … … 31 31 32 32 const TRUSTCAPTCHA_BASE_FILE = __FILE__; 33 const PLUGIN_VERSION = '2.0. 0';33 const PLUGIN_VERSION = '2.0.1'; 34 34 35 35 require 'vendor/autoload.php'; … … 43 43 return $trustcaptcha; 44 44 } 45 46 45 trustcaptcha()->setup(); -
trustcaptcha/trunk/vendor/composer/installed.php
r3317636 r3320677 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' fb9470c51b7c0bbefa3b774e4cb846774fdc2594',6 'reference' => 'b3c852dea7aaa5cc779b6ba3de933610d4f9c583', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 32 32 'pretty_version' => 'dev-master', 33 33 'version' => 'dev-master', 34 'reference' => ' fb9470c51b7c0bbefa3b774e4cb846774fdc2594',34 'reference' => 'b3c852dea7aaa5cc779b6ba3de933610d4f9c583', 35 35 'type' => 'wordpress-plugin', 36 36 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.