You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: inc/rest.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -392,7 +392,7 @@ public function register_service( WP_REST_Request $request ) {
392
392
returnnewWP_REST_Response(
393
393
[
394
394
'data' => null,
395
-
'message' => sprintf( /* translators: 1 start anchor tag to register page, 2 is ending anchor tag. */__( 'Error: This site has been previously registered. You can login to your account from %1$shere%2$s', 'optimole-wp' ), '<a href="' . esc_url( tsdk_translate_link( 'https://dashboard.optimole.com/login','query')).'" target="_blank"> ', '</a>' ),
395
+
'message' => sprintf( /* translators: 1 start anchor tag to register page, 2 is ending anchor tag. */__( 'Error: This site has been previously registered. You can login to your account from %1$shere%2$s', 'optimole-wp' ), '<a href="' . esc_url( tsdk_translate_link( 'https://dashboard.optimole.com/login','query' ) ) . '" target="_blank"> ', '</a>' ),
396
396
'code' => 'site_exists',
397
397
],
398
398
200
@@ -783,15 +783,15 @@ public function check_redirects( WP_REST_Request $request ) {
783
783
$status_code = $response['response']['code'];
784
784
if ( $status_code === 301 ) {
785
785
$status = 'deactivated';
786
-
$result = '<li>❌ ' . sprintf( /* translators: 1 is starting anchor tag, 2 is the ending anchor tag. */__( 'Your account is currently disabled due to exceeding quota and Optimole is no longer able to optimize the images. In order to fix this you will need to %1$supgrade%2$s.', 'optimole-wp' ), '<a target="_blank" href="' . esc_url( tsdk_translate_link('https://optimole.com/pricing')).'">', '</a>' ) . '</li>';
786
+
$result = '<li>❌ ' . sprintf( /* translators: 1 is starting anchor tag, 2 is the ending anchor tag. */__( 'Your account is currently disabled due to exceeding quota and Optimole is no longer able to optimize the images. In order to fix this you will need to %1$supgrade%2$s.', 'optimole-wp' ), '<a target="_blank" href="' . esc_url( tsdk_translate_link('https://optimole.com/pricing' ) ) . '">', '</a>' ) . '</li>';
787
787
break;
788
788
}
789
789
if ( $status_code === 302 ) {
790
790
if ( isset( $headers['x-redirect-o'] ) ) {
791
791
$optimole_code = (int) $headers['x-redirect-o'];
792
792
if ( $optimole_code === 1 ) {
793
793
$status = 'log';
794
-
$result .= '<li>❌ ' . sprintf( /* translators: 1 is the domain, 2 is starting anchor tag, 3 is the ending anchor tag. */__( 'The domain: %1$s is not allowed to optimize images using your Optimole account. You can add this to the allowed list %2$shere%3$s.', 'optimole-wp' ), '<b>' . $domain . '</b>', '<a target="_blank" href="' . esc_url( tsdk_translate_link( 'https://dashboard.optimole.com/whitelist','query')).'">', '</a>' ) . '</li>';
794
+
$result .= '<li>❌ ' . sprintf( /* translators: 1 is the domain, 2 is starting anchor tag, 3 is the ending anchor tag. */__( 'The domain: %1$s is not allowed to optimize images using your Optimole account. You can add this to the allowed list %2$shere%3$s.', 'optimole-wp' ), '<b>' . $domain . '</b>', '<a target="_blank" href="' . esc_url( tsdk_translate_link( 'https://dashboard.optimole.com/whitelist','query' ) ) . '">', '</a>' ) . '</li>';
0 commit comments