Update wc-core-functions.php