duplicate_product_post_meta should use maybe_unserialize for meta values
-
I discovered a bug in
inc/products.class.php
in theduplicate_product_post_meta
function. Since post meta may also be serialized data , it is important tomaybe_unserialize
the$meta_value
because otherwise it will get serialized twice and will no longer work for the translated product.Adding
$meta_value = maybe_unserialize( $meta_value );
between lines 615 and 616 will fix this issue.
https://www.ads-software.com/plugins/woocommerce-multilingual/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘duplicate_product_post_meta should use maybe_unserialize for meta values’ is closed to new replies.