woocommerce / woocommerce-product-tables-feature-plugin

Implements new data-stores and moves product data into custom tables, with a new, normalised data structure.
GNU General Public License v3.0
192 stars 32 forks source link

WC_Product_Attributes set_options #96

Closed mikejolley closed 6 years ago

mikejolley commented 6 years ago

Whilst testing https://github.com/woocommerce/woocommerce/issues/19645 I noticed this converts options to int e.g. if you have an array of strings such as 1, 2, 3, 4, they become integer.

This could cause issues when creating missing terms, because it will think they are IDs rather than names.