Ajax variations: stripslashes to fix attributes with quotes.
This commit is contained in:
parent
a3d376b5c3
commit
457283bc3c
|
@ -440,7 +440,7 @@ class WC_AJAX {
|
|||
die();
|
||||
}
|
||||
|
||||
$variation_id = $variable_product->get_matching_variation( $_POST );
|
||||
$variation_id = $variable_product->get_matching_variation( stripslashes_deep( $_POST ) );
|
||||
|
||||
if ( $variation_id ) {
|
||||
$variation = $variable_product->get_available_variation( $variation_id );
|
||||
|
|
|
@ -161,6 +161,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
|
||||
* Fix - Query within wc_customer_bought_product().
|
||||
* Fix - Tab hiding with some theme markup.
|
||||
* Fix - Ajax variations: stripslashes to fix attributes with quotes.
|
||||
* Tweak - Disable error_reporting during ajax requests to prevent malformed JSON.
|
||||
* Tweak - When merging shipping taxes with a shipping rate taxes, ensure shipping rate taxes is not malformed.
|
||||
|
||||
|
|
Loading…
Reference in New Issue