Plugin Directory

Changeset 3472552


Ignore:
Timestamp:
03/02/2026 10:01:11 AM (5 weeks ago)
Author:
postcodenl
Message:

Update plugin files for release 2.7.2

Location:
postcode-eu-address-validation/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • postcode-eu-address-validation/trunk/postcode-eu-address-validation.php

    r3464892 r3472552  
    44 * Plugin URI: https://www.postcode.eu/products/address-api/implementation
    55 * Description: Address autocomplete and validation using the Postcode.eu API.
    6  * Version: 2.7.1
     6 * Version: 2.7.2
    77 * Author: Postcode.nl
    88 * Author URI: https://www.postcode.nl
  • postcode-eu-address-validation/trunk/readme.txt

    r3464892 r3472552  
    22Contributors: postcodenl
    33Tags: address validation, address autocomplete, postcode api, address api, postcode check
    4 Stable tag: 2.7.1
     4Stable tag: 2.7.2
    55Tested up to: 6.9
    66License: FreeBSD license
     
    8787== Changelog ==
    8888
     89= 2.7.2 =
     90* Fix notice about unregistered dependency in blocks checkout.
     91
    8992= 2.7.1 =
    9093* Fix autocomplete missing from billing address when using pickup delivery.
  • postcode-eu-address-validation/trunk/src/PostcodeNl/AddressAutocomplete/Main.php

    r3464892 r3472552  
    1515
    1616    /** @var string The version number of the plugin should be equal to the commented version number in ../../../postcode-eu-address-validation.php */
    17     public const VERSION = '2.7.1';
     17    public const VERSION = '2.7.2';
    1818
    1919    /** @var string Script handle of the autocomplete library. */
     
    186186    public function enqueueScripts(): void
    187187    {
    188         if (!$this->_options->isApiActive())
    189         {
    190             return;
    191         }
    192 
    193         // CSS
    194         wp_enqueue_style(
     188        // Register dependency for Blocks checkout. See BlocksIntegration::_register_block_frontend_scripts().
     189        wp_register_style(
    195190            static::AUTOCOMPLETE_LIBRARY_HANDLE,
    196191            static::$pluginUrl . '/assets/libraries/postcode-eu-autocomplete-address.css',
     
    198193            static::VERSION
    199194        );
     195        wp_register_script(
     196            static::AUTOCOMPLETE_LIBRARY_HANDLE,
     197            static::$pluginUrl . '/assets/libraries/postcode-eu-autocomplete-address.js',
     198            [],
     199            static::VERSION,
     200            true
     201        );
     202
     203        if (!$this->_options->isApiActive())
     204        {
     205            return;
     206        }
     207
     208        // CSS
     209        wp_enqueue_style(static::AUTOCOMPLETE_LIBRARY_HANDLE);
    200210        wp_enqueue_style(
    201211            'postcode-eu-autofill',
     
    206216
    207217        // Javascript
    208         wp_enqueue_script(
    209             static::AUTOCOMPLETE_LIBRARY_HANDLE,
    210             static::$pluginUrl . '/assets/libraries/postcode-eu-autocomplete-address.js',
    211             [],
    212             static::VERSION,
    213             true
    214         );
     218        wp_enqueue_script(static::AUTOCOMPLETE_LIBRARY_HANDLE);
    215219        wp_enqueue_script(
    216220            'postcode-eu-autocomplete-state-mapping',
Note: See TracChangeset for help on using the changeset viewer.