woocommerce/includes/updates/woocommerce-update-2.3.php

23 lines
720 B
PHP
Raw Normal View History

<?php
/**
2015-11-03 13:53:50 +00:00
* Update WC to 2.3.0
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Updates
* @version 2.3.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// _money_spent and _order_count may be out of sync - clear them
delete_metadata( 'user', 0, '_money_spent', '', true );
delete_metadata( 'user', 0, '_order_count', '', true );
// To prevent taxes being hidden when using a default 'no address' in a store with tax inc prices, set the woocommerce_default_customer_address to use the store base address by default
if ( '' === get_option( 'woocommerce_default_customer_address', false ) && wc_prices_include_tax() ) {
update_option( 'woocommerce_default_customer_address', 'base' );
2015-11-03 13:31:20 +00:00
}