| @@ 66-68 (lines=3) @@ | ||
| 63 | return; |
|
| 64 | } |
|
| 65 | ||
| 66 | if ( empty( $_POST['action'] ) || 'edit_address' !== $_POST['action'] || empty( $_POST['_wpnonce'] ) || ! wp_verify_nonce( $_POST['_wpnonce'], 'woocommerce-edit_address' ) ) { |
|
| 67 | return; |
|
| 68 | } |
|
| 69 | ||
| 70 | $user_id = get_current_user_id(); |
|
| 71 | ||
| @@ 163-165 (lines=3) @@ | ||
| 160 | return; |
|
| 161 | } |
|
| 162 | ||
| 163 | if ( empty( $_POST[ 'action' ] ) || 'save_account_details' !== $_POST[ 'action' ] || empty( $_POST['_wpnonce'] ) || ! wp_verify_nonce( $_POST['_wpnonce'], 'save_account_details' ) ) { |
|
| 164 | return; |
|
| 165 | } |
|
| 166 | ||
| 167 | $errors = new WP_Error(); |
|
| 168 | $user = new stdClass(); |
|