Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
matrix:
include:
- node-version: '14.x'
WORDPRESS_VERSION: 5.7.2
WORDPRESS_VERSION: 5.8.3
PHP_VERSION: 7.4
WOOCOMMERCE_VERSION: 5.7.1
WORDPRESS_THEME: twentytwenty
Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PLUGIN := 3-word-address-validation-field

# Define the version (this is your single source of truth)
VERSION := 4.0.17
VERSION := 4.0.18

# Define file paths
PLUGIN_FILE := w3w-autosuggest/w3w-autosuggest.php
Expand Down
4 changes: 2 additions & 2 deletions w3w-autosuggest-blocks/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion w3w-autosuggest-blocks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "w3w-autosuggest-blocks",
"version": "4.0.17",
"version": "4.0.18",
"description": "what3words plugin for blocks based woocommerce checkout",
"author": "what3words",
"license": "GPL-2.0-only",
Expand Down
2 changes: 1 addition & 1 deletion w3w-autosuggest-blocks/src/block.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"version": "4.0.17",
"version": "4.0.18",
"title": "what3words Autosuggest",
"category": "widgets",
"attributes": {
Expand Down
10 changes: 9 additions & 1 deletion w3w-autosuggest/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: what3words
Tags: what3words, 3 word address, three word address, searchbox, search, address, validation, autosuggest, w3w
Requires at least: 4.7
Tested up to: 6.7.2
Stable tag: 4.0.17
Stable tag: 4.0.18
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -74,6 +74,14 @@ Have any questions? Want to learn more about how the what3words Address Field pl

== Changelog ==

= 4.0.18 =
* Release 2025.08.19
* Bug fixed for wordpress instances crashing when it doesn't have woocommerce

= 4.0.17 =
* Release 2025.07.03
* Support for woocommerce blocks based check out

= 4.0.16 =
* Release 2025.02.10
* Added input text sanitation in plugin settings
Expand Down
8 changes: 5 additions & 3 deletions w3w-autosuggest/includes/class-w3w-autosuggest.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,12 @@ private function set_locale()

private function setup_blocks()
{
if (!class_exists('W3W_Autosuggest_Blocks')) {
require_once plugin_dir_path(dirname(__FILE__)) . 'includes/class-w3w-autosuggest-blocks.php';
if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) {
if (!class_exists('W3W_Autosuggest_Blocks')) {
require_once plugin_dir_path(dirname(__FILE__)) . 'includes/class-w3w-autosuggest-blocks.php';
}
new W3W_Autosuggest_Blocks($this->loader);
}
new W3W_Autosuggest_Blocks($this->loader);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions w3w-autosuggest/w3w-autosuggest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Plugin Name: what3words Address Field
* Plugin URI: https://github.com/what3words/wordpress-autosuggest-plugin
* Description: Official plugin to allow customers to enter and validate a what3words address on your checkout for accurate deliveries
* Version: 4.0.17
* Version: 4.0.18
* Author: what3words
* Author URI: https://what3words.com
* License: GPL-2.0+
Expand Down Expand Up @@ -55,7 +55,7 @@
* Current plugin version.
*/
if (!defined('W3W_PLUGIN_VERSION')) {
define('W3W_PLUGIN_VERSION', '4.0.17');
define('W3W_PLUGIN_VERSION', '4.0.18');
}
/**
* Plugin settings name
Expand Down