Fix numeric rates

This commit is contained in:
Mike Jolley 2016-01-05 15:06:39 +00:00
parent 97d47fb576
commit 1630913c62
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ class WC_Shipping {
foreach ( $this->load_shipping_methods( $package ) as $shipping_method ) {
// Shipping instances need an ID
if ( ! $shipping_method->supports( 'shipping-zones' ) || $shipping_method->get_instance_id() ) {
$package['rates'] = array_merge( $package['rates'], $shipping_method->get_rates_for_package( $package ) );
$package['rates'] = $package['rates'] + $shipping_method->get_rates_for_package( $package ); // + instead of array_merge maintains numeric keys
}
}