Showing with 20 additions and 9 deletions.
  1. +5 −0 CHANGELOG.md
  2. +1 −2 inc/files.php
  3. +2 −3 js/ppom.inputs.js
  4. +1 −1 package.json
  5. +9 −1 readme.txt
  6. +2 −2 woocommerce-product-addon.php
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
##### [Version 33.0.1](https://github.com/Codeinwp/woocommerce-product-addon/compare/v33.0.0...v33.0.1) (2024-09-30)

- Fixed a regression where the Min Image Select and Max Image Select options were not enforcing limits correctly in the latest update
- Fixed a regression where customers could not upload images via the PPOM Image Cropper field.

#### [Version 33.0.0](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.27...v33.0.0) (2024-09-27)

**New Features**
Expand Down
3 changes: 1 addition & 2 deletions inc/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,10 @@ function ppom_upload_file() {
$file_path_thumb = $file_dir_path . 'thumbs';
$file_name = wp_unique_filename( $file_path_thumb, $file_name );
$file_name = strtolower( $file_name );
$file_path = $file_dir_path . $file_name;
$file_ext = pathinfo( $file_name, PATHINFO_EXTENSION );
$unique_hash = substr( hash( 'sha256', wp_generate_password( 8, false, false ) ), 0, 8 );
$file_name = str_replace( ".$file_ext", ".$unique_hash.$file_ext", $file_name );
// var_dump($file_path); exit;
$file_path = $file_dir_path . $file_name;

// Make sure the fileName is unique but only if chunking is disabled
if ( $chunks < 2 && file_exists( $file_path ) ) {
Expand Down
5 changes: 2 additions & 3 deletions js/ppom.inputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,8 @@ function ppom_init_js_for_ppom_fields(ppom_fields) {
return;
}

const multiple = input.dataset.allowMultiple;

if ( ! multiple ) {
const multiple = input.dataset.allowMultiple || false;
if ( multiple ) {
if (input.dataset.required) {
input.checked = true;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woocommerce-product-addon",
"version": "33.0.0",
"version": "33.0.1",
"description": "PPOM for WooCommerce",
"main": "index.js",
"repository": "https://github.com/Codeinwp/woocommerce-product-addon",
Expand Down
10 changes: 9 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: themeisle
Tags: woocommerce product addons, woocommerce product options, woocommerce product fields, woocommerce product, woocommerce product addon
Requires at least: 3.5
Tested up to: 6.6
Stable tag: 33.0.0
Stable tag: 33.0.1
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Requires PHP: 7.2
Expand Down Expand Up @@ -122,6 +122,14 @@ If you feels that PPOM Free or PPOM PRO versions are not enough for your needs,

== Changelog ==

##### [Version 33.0.1](https://github.com/Codeinwp/woocommerce-product-addon/compare/v33.0.0...v33.0.1) (2024-09-30)

- Fixed a regression where the Min Image Select and Max Image Select options were not enforcing limits correctly in the latest update
- Fixed a regression where customers could not upload images via the PPOM Image Cropper field.




#### [Version 33.0.0](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.27...v33.0.0) (2024-09-27)

**New Features**
Expand Down
4 changes: 2 additions & 2 deletions woocommerce-product-addon.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: PPOM for WooCommerce
* Plugin URI: https://themeisle.com/plugins/ppom-pro/
* Description: PPOM (Personalized Product Meta Manager) plugin allow WooCommerce Store Admin to create unlimited input fields and files to attach with Product Pages.
* Version: 33.0.0
* Version: 33.0.1
* Author: Themeisle
* Text Domain: woocommerce-product-addon
* Domain Path: /languages
Expand All @@ -27,7 +27,7 @@
define( 'PPOM_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
define( 'PPOM_WP_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __DIR__ ) ) );
define( 'PPOM_BASENAME', basename( PPOM_WP_PLUGIN_DIR ) );
define( 'PPOM_VERSION', '33.0.0' );
define( 'PPOM_VERSION', '33.0.1' );
define( 'PPOM_DB_VERSION', '32.0.0' );
define( 'PPOM_PRODUCT_META_KEY', '_product_meta_id' );
define( 'PPOM_TABLE_META', 'nm_personalized' );
Expand Down