Check if set

This commit is contained in:
Mike Jolley 2013-02-28 14:59:38 +00:00
parent 9e9183367f
commit f7d52e5393
1 changed files with 2 additions and 1 deletions

View File

@ -226,6 +226,7 @@ class WC_Checkout {
foreach ( $this->checkout_fields['shipping'] as $key => $field ) {
if ( $this->posted['shiptobilling'] ) {
if ( isset( $this->posted[ str_replace( 'shipping_', 'billing_', $key ) ] ) )
update_post_meta( $order_id, '_' . $key, $this->posted[ str_replace( 'shipping_', 'billing_', $key ) ] );
} else {