getIssue(); $timeToRetry = $s3Issue['retryAfter']; if (!$s3Issue['issue']) return; switch ($s3Issue['issue']) { case 'disconnected': if ($s3->verifyConnection()['result'] == 'connected') { $s3->deleteIssue(); return; } $message = sprintf( __('Your authentication to Wasabi has expired or become invalid. Please re-authenticate to restore access. If the issue persists, check your credentials and token validity. You can also disable Wasabi as an external storage option by clicking %shere%s.', 'backup-backup'), '', '' ); break; case 'forbidden': $message = sprintf( __('The plugin has lost the required permissions to access Wasabi S3. This may be due to changes in your access policies. Please verify your IAM permissions and re-authenticate. The plugin will automatically retry in %s.', 'backup-backup'), $timeToRetry ); break; default: return; } if (!isset($message) || $s3Issue['dismissed']) return; ?>