Changeset 3420797
- Timestamp:
- 12/16/2025 09:24:46 AM (4 months ago)
- Location:
- r2k-captcha
- Files:
-
- 12 added
- 2 edited
-
tags/1.0.3 (added)
-
tags/1.0.3/languages (added)
-
tags/1.0.3/languages/r2k-captcha-he_IL.mo (added)
-
tags/1.0.3/languages/r2k-captcha-he_IL.po (added)
-
tags/1.0.3/languages/r2k-captcha.pot (added)
-
tags/1.0.3/r2k-captcha.php (added)
-
tags/1.0.3/readme.txt (added)
-
tags/1.0.3/static (added)
-
tags/1.0.3/static/backend.css (added)
-
tags/1.0.3/static/backend.js (added)
-
tags/1.0.3/static/frontend.js (added)
-
tags/1.0.3/static/notice.js (added)
-
trunk/r2k-captcha.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
r2k-captcha/trunk/r2k-captcha.php
r3401587 r3420797 4 4 * Plugin URI: https://wordpress.org/support/plugin/r2k-security-captcha 5 5 * Description: Protect your WordPress website from spam and abuse with R2K Security Captcha. This plugin offers powerful security by integrating with two of the most trusted services: Google's reCAPTCHA Enterprise and Cloudflare's Turnstile. Choose the best protection for your site and keep your forms secure. 6 * Version: 1.0. 26 * Version: 1.0.3 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 8.0 … … 19 19 $plugin_data = get_plugin_data( __FILE__ ); 20 20 21 define('R2K_CAPTCHA_VERSION', '1.0. 2');21 define('R2K_CAPTCHA_VERSION', '1.0.3'); 22 22 define('R2K_CAPTCHA_PLGUIN_NAME', $plugin_data['Name']); 23 23 … … 190 190 // login 191 191 if ($this->get_option('r2k_captcha_login')) { 192 if ( is_login() && (!$this->hasGetValue('action') || !in_array(wp_kses_data($_GET['action']), ['lostpassword', 'rp', 'resetpass', 'register'])) ) {192 if ($this->is_login() && (!$this->hasGetValue('action') || !in_array(wp_kses_data($_GET['action']), ['lostpassword', 'rp', 'resetpass', 'register'])) ) { 193 193 add_action('login_enqueue_scripts', [$this, 'enqueue_front'] ); 194 194 add_action('login_form', [$this, 'frontend_field'] ); … … 199 199 // lost password 200 200 if ($this->get_option('r2k_captcha_lostpassword')) { 201 if( is_login() && $this->hasGetValue('action') && in_array(wp_kses_data($_GET['action']), ['lostpassword', 'rp', 'resetpass'])) {201 if($this->is_login() && $this->hasGetValue('action') && in_array(wp_kses_data($_GET['action']), ['lostpassword', 'rp', 'resetpass'])) { 202 202 add_action('login_enqueue_scripts', [$this, 'enqueue_front'] ); 203 203 add_action('resetpass_form', [$this, 'frontend_field'] ); … … 210 210 // registration 211 211 if ($this->get_option('r2k_captcha_register')) { 212 if( is_login() && $this->hasGetValue('action') && in_array(wp_kses_data($_GET['action']), ['register'])) {212 if($this->is_login() && $this->hasGetValue('action') && in_array(wp_kses_data($_GET['action']), ['register'])) { 213 213 add_action('login_enqueue_scripts', [$this, 'enqueue_front'] ); 214 214 add_action('register_form', [$this, 'frontend_field'] ); … … 247 247 return self::$instance; 248 248 } 249 250 251 private function is_login() { 252 return is_login() || strpos(basename(wp_login_url()), basename($_SERVER['SCRIPT_NAME'])) !== false; 253 } 254 249 255 250 256 /* … … 290 296 291 297 $action = 'login'; 292 if ( is_login() && $this->hasGetValue('action')) {298 if ($this->is_login() && $this->hasGetValue('action')) { 293 299 if (in_array(wp_kses_data($_GET['action']), ['rp', 'resetpass'])) { 294 300 $action = 'resetpass'; -
r2k-captcha/trunk/readme.txt
r3401587 r3420797 5 5 Requires at least: 6.0 6 6 Tested up to: 6.8 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 Requires PHP: 8.0 9 9 License: GPLv2 or later … … 55 55 56 56 == Changelog == 57 = 1.0.3 = 58 * Missing scripts on login in case of Subfolder wordpress 59 57 60 = 1.0.2 = 58 61 * Fix Javascript error
Note: See TracChangeset
for help on using the changeset viewer.