Fixed fatal error caused by wrong class name to instantiate.

Class WC_Shipping_International_Delivery got renamed to
WC_Shipping_Legacy_International_Delivery per 119f19a.

Fixes #10837.
This commit is contained in:
Akeda Bagus 2016-05-02 23:32:38 +07:00
parent ad3f9d0754
commit 098bc57947
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ update_option( 'woocommerce_calc_discounts_sequentially', 'yes' );
*/
$shipping_methods = array(
'woocommerce_flat_rates' => new WC_Shipping_Flat_Rate(),
'woocommerce_international_delivery_flat_rates' => new WC_Shipping_International_Delivery()
'woocommerce_international_delivery_flat_rates' => new WC_Shipping_Legacy_International_Delivery()
);
foreach ( $shipping_methods as $flat_rate_option_key => $shipping_method ) {
// Stop this running more than once if routine is repeated