Load address Closes #2162.

This commit is contained in:
Mike Jolley 2013-01-07 13:23:40 +00:00
parent c1004ff54d
commit 6d10c1b328
1 changed files with 2 additions and 1 deletions

View File

@ -1600,7 +1600,8 @@ function woocommerce_save_address() {
if ( $user_id <= 0 ) return;
$load_address = woocommerce_get_address_to_edit();
$load_address = ( isset( $_GET[ 'address' ] ) ) ? esc_attr( $_GET[ 'address' ] ) : '';
$load_address = ( $load_address == 'billing' || $load_address == 'shipping' ) ? $load_address : '';
$address = $woocommerce->countries->get_address_fields( esc_attr($_POST[ $load_address . '_country' ]), $load_address . '_' );