@@ 754-759 (lines=6) @@ | ||
751 | $response = $this->contact_service( 'register', $args ); |
|
752 | ||
753 | // we received an error from the VaultPress servers |
|
754 | if ( !empty( $response['faultCode'] ) ) { |
|
755 | $this->update_option( 'connection_error_code', $response['faultCode'] ); |
|
756 | $this->update_option( 'connection_error_message', $response['faultString'] ); |
|
757 | wp_redirect( admin_url( 'admin.php?page=vaultpress&error=true' ) ); |
|
758 | exit(); |
|
759 | } |
|
760 | ||
761 | // make sure the returned data looks valid |
|
762 | if ( empty( $response['key'] ) || empty( $response['secret'] ) || empty( $response['nonce'] ) || $nonce != $response['nonce'] ) { |
|
@@ 2288-2292 (lines=5) @@ | ||
2285 | ini_set( 'default_socket_timeout', $old_timeout ); |
|
2286 | ||
2287 | // we got an error from the servers |
|
2288 | if ( is_array( $rval ) && isset( $rval['faultCode'] ) ) { |
|
2289 | $this->update_option( 'connection', time() ); |
|
2290 | $this->update_option( 'connection_error_code', $rval['faultCode'] ); |
|
2291 | $this->update_option( 'connection_error_message', $rval['faultString'] ); |
|
2292 | } |
|
2293 | ||
2294 | return $rval; |
|
2295 | } |