diff --git a/inc/Engine/Common/JobManager/APIHandler/AbstractSafeAPIClient.php b/inc/Engine/Common/JobManager/APIHandler/AbstractSafeAPIClient.php index 71b9c0271d..fd11081e83 100644 --- a/inc/Engine/Common/JobManager/APIHandler/AbstractSafeAPIClient.php +++ b/inc/Engine/Common/JobManager/APIHandler/AbstractSafeAPIClient.php @@ -65,7 +65,7 @@ private function send_request( $method, $params = [], $safe = false ) { $transient_key = $this->get_transient_key(); if ( get_transient( $transient_key . '_timeout_active' ) ) { - return new WP_Error( 429, __( 'Too many requests.', 'rocket' ) ); + return new WP_Error( 429, 'Too many requests.' ); } // Get previous_expiration early to avoid multiple parallel requests increasing the expiration multiple times. $previous_expiration = (int) get_transient( $transient_key . '_timeout' ); @@ -82,7 +82,7 @@ private function send_request( $method, $params = [], $safe = false ) { $body = wp_remote_retrieve_body( $response ); if ( empty( $body ) || ( ! empty( $response['response']['code'] ) && 200 !== $response['response']['code'] ) ) { $this->set_timeout_transients( $previous_expiration ); - return new WP_Error( 500, __( 'Not valid response.', 'rocket' ) ); + return new WP_Error( 500, 'Not valid response.' ); } $this->delete_timeout_transients(); @@ -148,6 +148,6 @@ private function send_remote_request( $api_url, $method, $params, $safe ) { return wp_safe_remote_post( $api_url, $params ); } - return new WP_Error( 400, __( 'Not valid request type.', 'rocket' ) ); + return new WP_Error( 400, 'Not valid request type.' ); } } diff --git a/wp-rocket.php b/wp-rocket.php index 61dd925b34..2baf1288c1 100755 --- a/wp-rocket.php +++ b/wp-rocket.php @@ -12,7 +12,7 @@ * Licence: GPLv2 or later * * Text Domain: rocket - * Domain Path: languages + * Domain Path: /languages * * Copyright 2013-2024 WP Rocket */