this is a legacy update

This commit is contained in:
Mike Jolley 2016-05-11 11:10:25 +01:00
parent d3b450139b
commit cd01218ee9
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ update_option( 'woocommerce_calc_discounts_sequentially', 'yes' );
* Update legacy options to new math based options. * Update legacy options to new math based options.
*/ */
$shipping_methods = array( $shipping_methods = array(
'woocommerce_flat_rates' => new WC_Shipping_Flat_Rate(), 'woocommerce_flat_rates' => new WC_Shipping_Legacy_Flat_Rate(),
'woocommerce_international_delivery_flat_rates' => new WC_Shipping_Legacy_International_Delivery() 'woocommerce_international_delivery_flat_rates' => new WC_Shipping_Legacy_International_Delivery()
); );
foreach ( $shipping_methods as $flat_rate_option_key => $shipping_method ) { foreach ( $shipping_methods as $flat_rate_option_key => $shipping_method ) {