27915dd696
This commits changes WC_Product_Variation to raise an exception when the class is instantiated with an ID that belongs to a post object that is not a product variation. This is necessary to avoid problems like the one described in #24956 where passing a variable product ID to WC_Product_Variation would result in transparently modifying the variable product title and excerpt. |
||
---|---|---|
.. | ||
class-wc-tests-product-download.php | ||
data-store.php | ||
data.php | ||
factory.php | ||
functions.php | ||
product-simple.php | ||
product-variable.php | ||
product-variation.php | ||
query.php |