| @@ -72,9 +72,9 @@ | ||
| 72 | 72 | if ( empty( $secret_key ) ) { |
| 73 | 73 | return; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - if ( ! is_string( $this->secret_key ) || ! hash_equals( $this->secret_key, $secret_key ) ) { | |
| 76 | + if ( $this->secret_key !== $secret_key ) { | |
| 77 | 77 | return RestController::error_message( 'Invalid secret key.' ); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | // delete the suretrigger_options from wp_options table once the connection is deleted on SAAS. |