diff --git a/inc/Engine/License/API/UserClient.php b/inc/Engine/License/API/UserClient.php index f8e31b7b4d..62ab12f0f4 100644 --- a/inc/Engine/License/API/UserClient.php +++ b/inc/Engine/License/API/UserClient.php @@ -88,11 +88,6 @@ private function get_raw_user_data() { ? $this->options->get( 'consumer_email', '' ) : rocket_get_constant( 'WP_ROCKET_EMAIL', '' ); - // Bail out if customer_key & email are empty. - if ( empty( $customer_key ) || empty( $customer_email ) ) { - return false; - } - $response = $this->send_post_request( [ 'body' => 'user_id=' . rawurlencode( $customer_email ) . '&consumer_key=' . sanitize_key( $customer_key ), diff --git a/tests/Integration/inc/Engine/License/API/UserClient/getUserData.php b/tests/Integration/inc/Engine/License/API/UserClient/getUserData.php index a666576631..9346c5c88b 100644 --- a/tests/Integration/inc/Engine/License/API/UserClient/getUserData.php +++ b/tests/Integration/inc/Engine/License/API/UserClient/getUserData.php @@ -30,7 +30,9 @@ public static function set_up_before_class() { public function set_up() { parent::set_up(); - + delete_transient( 'wp_rocket_customer_data' ); + delete_transient( 'wpr_user_information_timeout_active' ); + delete_transient( 'wpr_user_information_timeout' ); add_filter( 'pre_get_rocket_option_consumer_email', [ $this, 'set_consumer_email' ] ); add_filter( 'pre_get_rocket_option_consumer_key', [ $this, 'set_consumer_key' ] ); }