Showing with 19 additions and 8 deletions.
  1. +4 −0 CHANGELOG.md
  2. +1 −1 inc/files.php
  3. +1 −1 package.json
  4. +8 −1 readme.txt
  5. +5 −5 woocommerce-product-addon.php
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
##### [Version 32.0.20](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.19...v32.0.20) (2024-04-30)

- Fixed File Input not working

##### [Version 32.0.19](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.18...v32.0.19) (2024-04-23)

- Enhanced security
Expand Down
2 changes: 1 addition & 1 deletion inc/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function ppom_upload_file() {
$file_name = apply_filters( 'ppom_uploaded_filename', $file_name );

/* ========== Invalid File type checking ========== */
$file_type = wp_check_filetype_and_ext( $file_dir_path, $file_name );
$file_type = wp_check_filetype_and_ext( $file_dir_path . $file_name, $file_name );
$extension = $file_type['ext'];


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": "32.0.19",
"version": "32.0.20",
"description": "PPOM for WooCommerce",
"main": "index.js",
"repository": "https://github.com/Codeinwp/woocommerce-product-addon",
Expand Down
9 changes: 8 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.5
Stable tag: 32.0.19
Stable tag: 32.0.20
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Requires PHP: 7.2
Expand Down Expand Up @@ -122,6 +122,13 @@ If you feels that PPOM Free or PPOM PRO versions are not enough for your needs,

== Changelog ==

##### [Version 32.0.20](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.19...v32.0.20) (2024-04-30)

- Fixed File Input not working




##### [Version 32.0.19](https://github.com/Codeinwp/woocommerce-product-addon/compare/v32.0.18...v32.0.19) (2024-04-23)

- Enhanced security
Expand Down
10 changes: 5 additions & 5 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: 32.0.19
* Version: 32.0.20
* Author: Themeisle
* Text Domain: woocommerce-product-addon
* Domain Path: /languages
Expand All @@ -26,15 +26,15 @@
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', '32.0.19' );
define( 'PPOM_VERSION', '32.0.20' );
define( 'PPOM_DB_VERSION', '30.1.0' );
define( 'PPOM_PRODUCT_META_KEY', '_product_meta_id' );
define( 'PPOM_TABLE_META', 'nm_personalized' );
define( 'PPOM_UPLOAD_DIR_NAME', 'ppom_files' );
define( 'PPOM_UPGRADE_URL', 'https://themeisle.com/plugins/ppom-pro/upgrade/' );
define( 'PPOM_COMPATIBILITY_FEATURES', [
'pro_cond_field_repeat' => true, // Compatibility for Conditional Field Repeater feature
'pgfbdfm_wp_filter_param_fix' => true // Fix for the wrong params of the ppom_get_field_by_dataname__field_meta WP filter.
'pgfbdfm_wp_filter_param_fix' => true // Fix for the wrong params of the ppom_get_field_by_dataname__field_meta WP filter .
] );

require PPOM_PATH . '/vendor/autoload.php';
Expand All @@ -49,7 +49,7 @@ function ( $products ) {
);

/*
* plugin localization being initiated here
* plugin localization being initiated here
*/
add_action( 'init', 'ppom_i18n_setup' );
function ppom_i18n_setup() {
Expand Down Expand Up @@ -117,7 +117,7 @@ function ( $compatibilities ) {
];

return $compatibilities;
}
}
);
add_action( 'woocommerce_init', 'PPOM' );

Expand Down