diff --git a/doofinder-for-woocommerce/doofinder-for-woocommerce.php b/doofinder-for-woocommerce/doofinder-for-woocommerce.php index 3c7d38c..edbe7ae 100644 --- a/doofinder-for-woocommerce/doofinder-for-woocommerce.php +++ b/doofinder-for-woocommerce/doofinder-for-woocommerce.php @@ -3,7 +3,7 @@ * Plugin Name: DOOFINDER Search and Discovery for WP & WooCommerce * License: GPLv2 or later * License URI: http://www.gnu.org/licenses/gpl-2.0.html - * Version: 2.5.19 + * Version: 2.5.20 * Requires at least: 5.6 * Requires PHP: 7.0 * Author: Doofinder @@ -40,7 +40,7 @@ class Doofinder_For_WordPress { * @var string */ - public static $version = '2.5.19'; + public static $version = '2.5.20'; /** * The only instance of Doofinder_For_WordPress diff --git a/doofinder-for-woocommerce/includes/settings/class-renderers.php b/doofinder-for-woocommerce/includes/settings/class-renderers.php index 4833934..bfb5c14 100755 --- a/doofinder-for-woocommerce/includes/settings/class-renderers.php +++ b/doofinder-for-woocommerce/includes/settings/class-renderers.php @@ -631,7 +631,10 @@ private function get_all_image_sizes() { $default_image_sizes = get_intermediate_image_sizes(); + $image_sizes = array(); + foreach ( $default_image_sizes as $size ) { + $image_sizes[ $size ] = array(); $image_sizes[ $size ]['width'] = intval( get_option( "{$size}_size_w" ) ); $image_sizes[ $size ]['height'] = intval( get_option( "{$size}_size_h" ) ); $image_sizes[ $size ]['crop'] = get_option( "{$size}_crop" ) ? get_option( "{$size}_crop" ) : false; diff --git a/doofinder-for-woocommerce/readme.txt b/doofinder-for-woocommerce/readme.txt index 47e2f76..b4549de 100644 --- a/doofinder-for-woocommerce/readme.txt +++ b/doofinder-for-woocommerce/readme.txt @@ -1,11 +1,11 @@ === DOOFINDER Search and Discovery for WP & WooCommerce === Contributors: Doofinder Tags: search, autocomplete -Version: 2.5.19 +Version: 2.5.20 Requires at least: 5.6 Tested up to: 6.7.1 Requires PHP: 7.0 -Stable tag: 2.5.19 +Stable tag: 2.5.20 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -126,6 +126,9 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro == Changelog == += 2.5.20 = +- Prevented an error when the $image_sizes array is not initialized. + = 2.5.19 = - Prevented errors if the prices come as false instead of 0. - Actually solved an issue regarding indices normalization on multilanguages. diff --git a/package-lock.json b/package-lock.json index 5458b1a..aae828a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "doofinder-woocommerce", - "version": "2.5.19", + "version": "2.5.20", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "doofinder-woocommerce", - "version": "2.5.19", + "version": "2.5.20", "license": "MIT", "devDependencies": { "grunt": "^1.0.1", diff --git a/package.json b/package.json index dc05a6c..f905520 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "doofinder-woocommerce", - "version": "2.5.19", + "version": "2.5.20", "description": "Integrate Doofinder in your WooCommerce site with (almost) no effort.", "main": "index.js", "scripts": {