Skip to content

Commit

Permalink
Debug/6715 fix ci 3 (#6748)
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuLamiot authored Jun 28, 2024
2 parents d26235d + 0ad200f commit db3f345
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 0 additions & 5 deletions inc/Engine/License/API/UserClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' ] );
}
Expand Down

0 comments on commit db3f345

Please sign in to comment.