Plugin Directory

Changeset 3760106


Ignore:
Timestamp:
10/22/2026 02:57:52 PM (10 days ago)
Author:
d.sturm
Message:

Update to version 1.5.1 from GitHub

Location:
privacy-captcha-for-cap
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • privacy-captcha-for-cap/tags/1.5.1/privacy-captcha-for-cap.php

    r3713291 r3760106  
    55 * Plugin URI:        https://github.com/zirkeldesign/privacy-captcha-for-cap
    66 * 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.0
     7 * Version:           1.5.1
    88 * Author:            Zirkel Design
    99 * Author URI:        https://zirkel.design
    … …  
    2323}
    2424
    25 define('CAP_CAPTCHA_VERSION', '1.5.0');
     25define('CAP_CAPTCHA_VERSION', '1.5.1');
    2626define('CAP_CAPTCHA_FILE', __FILE__);
    2727define('CAP_CAPTCHA_DIR', plugin_dir_path(__FILE__));
  • privacy-captcha-for-cap/tags/1.5.1/readme.txt

    r3713291 r3760106  
    55Tested up to: 7.1
    66Requires PHP: 8.3
    7 Stable tag: 1.5.0
     7Stable tag: 1.5.1
    88License: GPL-2.0-or-later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    117117== Changelog ==
    118118
     119= 1.5.1 =
     120* Fixed: a "wasm load failed" warning on the login page when only registration (or only login) is protected.
     121
    119122= 1.5.0 =
    120123* 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  
    6161    public function enqueueAssets(): void
    6262    {
    63         if (! $this->settings->isProtected('login') || ! $this->settings->isConfigured()) {
     63        if (! self::isScreen('login') || ! $this->settings->isProtected('login') || ! $this->settings->isConfigured()) {
    6464            return;
    6565        }
    … …  
    6767        $mode = $this->settings->getDisplayMode();
    6868        $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;
    6980    }
    7081
  • privacy-captcha-for-cap/tags/1.5.1/src/Integration/Registration.php

    r3640572 r3760106  
    4444    public function enqueueAssets(): void
    4545    {
    46         if (! $this->settings->isProtected('registration') || ! $this->settings->isConfigured()) {
     46        if (! Login::isScreen('register') || ! $this->settings->isProtected('registration') || ! $this->settings->isConfigured()) {
    4747            return;
    4848        }
  • privacy-captcha-for-cap/trunk/privacy-captcha-for-cap.php

    r3713291 r3760106  
    55 * Plugin URI:        https://github.com/zirkeldesign/privacy-captcha-for-cap
    66 * 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.0
     7 * Version:           1.5.1
    88 * Author:            Zirkel Design
    99 * Author URI:        https://zirkel.design
    … …  
    2323}
    2424
    25 define('CAP_CAPTCHA_VERSION', '1.5.0');
     25define('CAP_CAPTCHA_VERSION', '1.5.1');
    2626define('CAP_CAPTCHA_FILE', __FILE__);
    2727define('CAP_CAPTCHA_DIR', plugin_dir_path(__FILE__));
  • privacy-captcha-for-cap/trunk/readme.txt

    r3713291 r3760106  
    55Tested up to: 7.1
    66Requires PHP: 8.3
    7 Stable tag: 1.5.0
     7Stable tag: 1.5.1
    88License: GPL-2.0-or-later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    117117== Changelog ==
    118118
     119= 1.5.1 =
     120* Fixed: a "wasm load failed" warning on the login page when only registration (or only login) is protected.
     121
    119122= 1.5.0 =
    120123* 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  
    6161    public function enqueueAssets(): void
    6262    {
    63         if (! $this->settings->isProtected('login') || ! $this->settings->isConfigured()) {
     63        if (! self::isScreen('login') || ! $this->settings->isProtected('login') || ! $this->settings->isConfigured()) {
    6464            return;
    6565        }
    … …  
    6767        $mode = $this->settings->getDisplayMode();
    6868        $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;
    6980    }
    7081
  • privacy-captcha-for-cap/trunk/src/Integration/Registration.php

    r3640572 r3760106  
    4444    public function enqueueAssets(): void
    4545    {
    46         if (! $this->settings->isProtected('registration') || ! $this->settings->isConfigured()) {
     46        if (! Login::isScreen('register') || ! $this->settings->isProtected('registration') || ! $this->settings->isConfigured()) {
    4747            return;
    4848        }
Note: See TracChangeset for help on using the changeset viewer.