| @@ 52-54 (lines=3) @@ | ||
| 49 | return; |
|
| 50 | } |
|
| 51 | ||
| 52 | if ( empty( $_POST['action'] ) || 'edit_address' !== $_POST['action'] || empty( $_POST['_wpnonce'] ) || ! wp_verify_nonce( $_POST['_wpnonce'], 'woocommerce-edit_address' ) ) { |
|
| 53 | return; |
|
| 54 | } |
|
| 55 | ||
| 56 | $user_id = get_current_user_id(); |
|
| 57 | ||
| @@ 149-151 (lines=3) @@ | ||
| 146 | return; |
|
| 147 | } |
|
| 148 | ||
| 149 | if ( empty( $_POST[ 'action' ] ) || 'save_account_details' !== $_POST[ 'action' ] || empty( $_POST['_wpnonce'] ) || ! wp_verify_nonce( $_POST['_wpnonce'], 'save_account_details' ) ) { |
|
| 150 | return; |
|
| 151 | } |
|
| 152 | ||
| 153 | $errors = new WP_Error(); |
|
| 154 | $user = new stdClass(); |
|