Swap order of array_merge so that posted attributes do not get clobbered

This commit is contained in:
Jonathan Sadowski 2020-04-24 13:48:00 -05:00
parent 0c2b97ead2
commit f8066a8141
1 changed files with 1 additions and 1 deletions

View File

@ -907,7 +907,7 @@ class WC_Form_Handler {
}
// Merge variation attributes and posted attributes.
$posted_and_variation_attributes = array_merge( $posted_attributes, $variation_attributes );
$posted_and_variation_attributes = array_merge( $variation_attributes, $posted_attributes );
// If no variation ID is set, attempt to get a variation ID from posted attributes.
if ( empty( $variation_id ) ) {