Swap order of array_merge so that posted attributes do not get clobbered
This commit is contained in:
parent
0c2b97ead2
commit
f8066a8141
|
@ -907,7 +907,7 @@ class WC_Form_Handler {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Merge variation attributes and posted attributes.
|
// 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 no variation ID is set, attempt to get a variation ID from posted attributes.
|
||||||
if ( empty( $variation_id ) ) {
|
if ( empty( $variation_id ) ) {
|
||||||
|
|
Loading…
Reference in New Issue