Plugin Directory

Changeset 3684927


Ignore:
Timestamp:
09/07/2026 12:47:01 PM (3 months ago)
Author:
motylanogha
Message:

polski 1.31.8

Location:
polski/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • polski/trunk/build/admin.asset.php

    r3684881 r3684927  
    11<?php return array(
    22    'dependencies' => array('wp-element', 'wp-components', 'wp-data', 'wp-i18n', 'wp-api-fetch'),
    3     'version' => '1a07bd2a1c5',
     3    'version' => '1a07be60dff',
    44);
  • polski/trunk/build/frontend-consent.asset.php

    r3684881 r3684927  
    11<?php return array(
    22    'dependencies' => array(),
    3     'version' => '1a07bd2a1c5',
     3    'version' => '1a07be60dff',
    44);
  • polski/trunk/build/frontend-safefonts.asset.php

    r3684881 r3684927  
    11<?php return array(
    22    'dependencies' => array(),
    3     'version' => '1a07bd2a1c5',
     3    'version' => '1a07be60dff',
    44);
  • polski/trunk/build/frontend-triggers.asset.php

    r3684881 r3684927  
    11<?php return array(
    22    'dependencies' => array(),
    3     'version' => '1a07bd2a1c5',
     3    'version' => '1a07be60dff',
    44);
  • polski/trunk/changelog.txt

    r3684881 r3684927  
    22
    33Complete release history for Polski for WooCommerce. The plugin page on WordPress.org lists only the most recent releases; this file keeps the full record.
     4
     5= 1.31.8 =
     6* Fixed: the digital-content waiver field was registered on block checkout even with the Legal checkboxes module switched off, so every order carried it and the confirmation page listed it under Additional information with the value "No". The service had no module check at all. It is now silent whenever the module is off. Reported by strid3rr on the support forum.
     7* Fixed: two switches governed that one field and they contradicted each other. "Digital content (waiver)" on the modules screen was read by nothing, while the field was actually driven by a setting on the withdrawal page that defaults to on, so turning the visible switch off changed nothing. Where no explicit choice was ever saved, the visible switch now decides, and its default of off means off. A shop that deliberately set the mode on the withdrawal page keeps what it configured: this is a declaration under art. 16(m), and dropping it from a working checkout would be worse than the noise.
    48
    59= 1.31.7 =
  • polski/trunk/languages/polski.pot

    r3684881 r3684927  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Polski for WooCommerce 1.31.7\n"
     5"Project-Id-Version: Polski for WooCommerce 1.31.8\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/polski\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-09-07T12:14:26+00:00\n"
     12"POT-Creation-Date: 2026-09-07T12:34:59+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
    … …  
    95569556msgstr ""
    95579557
    9558 #: src/Service/DigitalConsentService.php:140
    9559 #: src/Service/DigitalConsentService.php:228
     9558#: src/Service/DigitalConsentService.php:144
     9559#: src/Service/DigitalConsentService.php:232
    95609560msgid "To buy digital products you have to consent to performance beginning before the withdrawal period ends."
    95619561msgstr ""
    95629562
    9563 #: src/Service/DigitalConsentService.php:204
     9563#: src/Service/DigitalConsentService.php:208
    95649564#: templates/checkout/legal-checkboxes.php:51
    95659565#: templates/forms/dsa-report.php:48
    … …  
    95719571msgstr ""
    95729572
    9573 #: src/Service/DigitalConsentService.php:336
     9573#: src/Service/DigitalConsentService.php:368
    95749574msgid "I consent to performance beginning (for example the supply of digital content) before the withdrawal period ends and I acknowledge that I thereby lose my right of withdrawal for the digital content supplied in this way."
    95759575msgstr ""
  • polski/trunk/polski.php

    r3684881 r3684927  
    77 * Plugin URI:        https://plogins.com/polski/
    88 * Description:       Adds GPSR, Omnibus, GDPR, withdrawals, VAT ID, KSeF hooks, product data and storefront modules for Polish WooCommerce shops.
    9  * Version:           1.31.7
     9 * Version:           1.31.8
    1010 * Requires at least: 6.9
    1111 * Requires PHP:      8.1
    … …  
    3333defined('ABSPATH') || exit;
    3434
    35 const VERSION     = '1.31.7';
     35const VERSION     = '1.31.8';
    3636const PLUGIN_FILE = __FILE__;
    3737const PLUGIN_DIR = __DIR__;
  • polski/trunk/readme.txt

    r3684881 r3684927  
    44Requires at least: 6.9
    55Tested up to: 7.1
    6 Stable tag: 1.31.7
     6Stable tag: 1.31.8
    77Requires PHP: 8.1
    88License: GPLv2 or later
    … …  
    357357== Changelog ==
    358358
     359= 1.31.8 =
     360* Fixed: the digital-content waiver field was registered on block checkout even with the Legal checkboxes module switched off, so every order carried it and the confirmation page listed it under Additional information with the value "No". The service had no module check at all. It is now silent whenever the module is off. Reported by strid3rr on the support forum.
     361* Fixed: two switches governed that one field and they contradicted each other. "Digital content (waiver)" on the modules screen was read by nothing, while the field was actually driven by a setting on the withdrawal page that defaults to on, so turning the visible switch off changed nothing. Where no explicit choice was ever saved, the visible switch now decides, and its default of off means off. A shop that deliberately set the mode on the withdrawal page keeps what it configured: this is a declaration under art. 16(m), and dropping it from a working checkout would be worse than the noise.
     362
    359363= 1.31.7 =
    360364* Fixed: the Omnibus "show in cart" setting did nothing. It had been on the settings screen since the module shipped, while the class meant to render it was an empty stub, so the lowest-price notice never appeared in any cart, classic or block. The notice now shows under the item in both, and under cross-sells and any other product listing built with blocks, which do not fire the classic loop hooks the module was relying on. Reported by strid3rr on the support forum.
  • polski/trunk/src/Service/DigitalConsentService.php

    r3670341 r3684927  
    9797        }
    9898
     99        if ($this->mode() === self::MODE_HIDDEN) {
     100            return;
     101        }
     102
    99103        woocommerce_store_api_register_endpoint_data([
    100104            'endpoint' => 'cart', // CartSchema::IDENTIFIER; literal mirrors ProductDataExtension's 'cart-item'.
    … …  
    318322    public function mode(): string
    319323    {
     324        // The consent belongs to the legal checkboxes module. With the module
     325        // off nothing may register, save or display, which is what a merchant
     326        // switching it off is asking for.
     327        if (! \Polski\Admin\ModulesPage::isModuleEnabled('legal_checkboxes')) {
     328            return self::MODE_HIDDEN;
     329        }
     330
    320331        $settings = get_option(self::SETTING_OPTION, []);
    321332        $settings = is_array($settings) ? $settings : [];
     333
     334        // Two switches ended up governing one field: this mode, on the
     335        // withdrawal settings page, and "Digital content (waiver)" on the
     336        // modules screen, which nothing read. A merchant who turned the visible
     337        // one off saw the field carry on, because this one defaults to optional.
     338        //
     339        // The explicit choice wins where one was made. Where the mode has never
     340        // been saved, the modules screen decides, so its default of off finally
     341        // means off. A shop that deliberately configured the mode keeps the
     342        // consent it configured: this is a legal declaration under art. 16(m),
     343        // and silently dropping it from a working checkout would be worse than
     344        // the noise being reported.
     345        if (! array_key_exists('digital_consent_mode', $settings)) {
     346            $checkout = get_option('polski_checkout', []);
     347            $checkout = is_array($checkout) ? $checkout : [];
     348
     349            return empty($checkout['digital_waiver_checkbox_enabled'])
     350                ? self::MODE_HIDDEN
     351                : self::MODE_OPTIONAL;
     352        }
     353
    322354        $mode = (string) ($settings['digital_consent_mode'] ?? self::MODE_OPTIONAL);
    323355
  • polski/trunk/vendor/composer/installed.php

    r3684881 r3684927  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => 'fe2e3263c716c0b6db3c01923680462449c9d497',
     6        'reference' => '3481755af5ca065851f6897a749fab82ba62cd0f',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
    … …  
    2323            'pretty_version' => 'dev-main',
    2424            'version' => 'dev-main',
    25             'reference' => 'fe2e3263c716c0b6db3c01923680462449c9d497',
     25            'reference' => '3481755af5ca065851f6897a749fab82ba62cd0f',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.