Changeset 3760106
- Timestamp:
- 10/22/2026 02:57:52 PM (10 days ago)
- Location:
- privacy-captcha-for-cap
- Files:
-
- 8 edited
- 1 copied
-
tags/1.5.1 (copied) (copied from privacy-captcha-for-cap/trunk )
-
tags/1.5.1/privacy-captcha-for-cap.php (modified) (2 diffs)
-
tags/1.5.1/readme.txt (modified) (2 diffs)
-
tags/1.5.1/src/Integration/Login.php (modified) (2 diffs)
-
tags/1.5.1/src/Integration/Registration.php (modified) (1 diff)
-
trunk/privacy-captcha-for-cap.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Integration/Login.php (modified) (2 diffs)
-
trunk/src/Integration/Registration.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
privacy-captcha-for-cap/tags/1.5.1/privacy-captcha-for-cap.php
r3713291 r3760106 5 5 * Plugin URI: https://github.com/zirkeldesign/privacy-captcha-for-cap 6 6 * Description: Privacy-friendly spam protection for WordPress comments, login, registration, WooCommerce checkout, and Gravity Forms, powered by your own Cap (trycap.dev) server. 7 * Version: 1.5. 07 * Version: 1.5.1 8 8 * Author: Zirkel Design 9 9 * Author URI: https://zirkel.design … … 23 23 } 24 24 25 define('CAP_CAPTCHA_VERSION', '1.5. 0');25 define('CAP_CAPTCHA_VERSION', '1.5.1'); 26 26 define('CAP_CAPTCHA_FILE', __FILE__); 27 27 define('CAP_CAPTCHA_DIR', plugin_dir_path(__FILE__)); -
privacy-captcha-for-cap/tags/1.5.1/readme.txt
r3713291 r3760106 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.3 7 Stable tag: 1.5. 07 Stable tag: 1.5.1 8 8 License: GPL-2.0-or-later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 117 117 == Changelog == 118 118 119 = 1.5.1 = 120 * Fixed: a "wasm load failed" warning on the login page when only registration (or only login) is protected. 121 119 122 = 1.5.0 = 120 123 * Improved: in Gravity Forms forms using the Orbital theme, the CAPTCHA now matches the fields around it (font, colours, border, corners, height), including form styles set in the block editor. -
privacy-captcha-for-cap/tags/1.5.1/src/Integration/Login.php
r3640572 r3760106 61 61 public function enqueueAssets(): void 62 62 { 63 if (! $this->settings->isProtected('login') || ! $this->settings->isConfigured()) {63 if (! self::isScreen('login') || ! $this->settings->isProtected('login') || ! $this->settings->isConfigured()) { 64 64 return; 65 65 } … … 67 67 $mode = $this->settings->getDisplayMode(); 68 68 $this->enqueuer->enqueueForMode($mode); 69 } 70 71 /** 72 * Whether wp-login.php is showing the given screen. `login_enqueue_scripts` 73 * fires on every screen, but the widget and its window globals are only 74 * printed by the matching form hook. Enqueueing elsewhere loads the widget 75 * without CAP_CUSTOM_WASM_URL, and its wasm prefetch then fetches the page. 76 */ 77 public static function isScreen(string $action): bool 78 { 79 return ($GLOBALS['action'] ?? 'login') === $action; 69 80 } 70 81 -
privacy-captcha-for-cap/tags/1.5.1/src/Integration/Registration.php
r3640572 r3760106 44 44 public function enqueueAssets(): void 45 45 { 46 if (! $this->settings->isProtected('registration') || ! $this->settings->isConfigured()) {46 if (! Login::isScreen('register') || ! $this->settings->isProtected('registration') || ! $this->settings->isConfigured()) { 47 47 return; 48 48 } -
privacy-captcha-for-cap/trunk/privacy-captcha-for-cap.php
r3713291 r3760106 5 5 * Plugin URI: https://github.com/zirkeldesign/privacy-captcha-for-cap 6 6 * Description: Privacy-friendly spam protection for WordPress comments, login, registration, WooCommerce checkout, and Gravity Forms, powered by your own Cap (trycap.dev) server. 7 * Version: 1.5. 07 * Version: 1.5.1 8 8 * Author: Zirkel Design 9 9 * Author URI: https://zirkel.design … … 23 23 } 24 24 25 define('CAP_CAPTCHA_VERSION', '1.5. 0');25 define('CAP_CAPTCHA_VERSION', '1.5.1'); 26 26 define('CAP_CAPTCHA_FILE', __FILE__); 27 27 define('CAP_CAPTCHA_DIR', plugin_dir_path(__FILE__)); -
privacy-captcha-for-cap/trunk/readme.txt
r3713291 r3760106 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.3 7 Stable tag: 1.5. 07 Stable tag: 1.5.1 8 8 License: GPL-2.0-or-later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 117 117 == Changelog == 118 118 119 = 1.5.1 = 120 * Fixed: a "wasm load failed" warning on the login page when only registration (or only login) is protected. 121 119 122 = 1.5.0 = 120 123 * Improved: in Gravity Forms forms using the Orbital theme, the CAPTCHA now matches the fields around it (font, colours, border, corners, height), including form styles set in the block editor. -
privacy-captcha-for-cap/trunk/src/Integration/Login.php
r3640572 r3760106 61 61 public function enqueueAssets(): void 62 62 { 63 if (! $this->settings->isProtected('login') || ! $this->settings->isConfigured()) {63 if (! self::isScreen('login') || ! $this->settings->isProtected('login') || ! $this->settings->isConfigured()) { 64 64 return; 65 65 } … … 67 67 $mode = $this->settings->getDisplayMode(); 68 68 $this->enqueuer->enqueueForMode($mode); 69 } 70 71 /** 72 * Whether wp-login.php is showing the given screen. `login_enqueue_scripts` 73 * fires on every screen, but the widget and its window globals are only 74 * printed by the matching form hook. Enqueueing elsewhere loads the widget 75 * without CAP_CUSTOM_WASM_URL, and its wasm prefetch then fetches the page. 76 */ 77 public static function isScreen(string $action): bool 78 { 79 return ($GLOBALS['action'] ?? 'login') === $action; 69 80 } 70 81 -
privacy-captcha-for-cap/trunk/src/Integration/Registration.php
r3640572 r3760106 44 44 public function enqueueAssets(): void 45 45 { 46 if (! $this->settings->isProtected('registration') || ! $this->settings->isConfigured()) {46 if (! Login::isScreen('register') || ! $this->settings->isProtected('registration') || ! $this->settings->isConfigured()) { 47 47 return; 48 48 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)