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
Site Health now shows your Bluesky connection status, explains why a reconnect is needed and how to prevent it, and adds an ATmosphere section to the debug information for easier troubleshooting.
* Lead sentence explaining why the connection needs a reconnect.
509
+
*
510
+
* Single source for the cause copy so every surface that reads the
511
+
* `reauth_reason` marker — the admin reconnect notice and the Site
512
+
* Health test — explains the same failure with the same words. Each
513
+
* caller appends its own consequence/action tail; copy edits and
514
+
* translations happen once, here.
515
+
*
516
+
* @since unreleased
517
+
*
518
+
* @return string Translated, unescaped sentence.
519
+
*/
520
+
functionreauth_reason_lead(): string {
521
+
switch ( get_reauth_reason() ) {
522
+
case Client::REAUTH_REASON_KEY_CHANGED:
523
+
return\__( 'Your site’s security keys have changed — this can happen after a migration, or when a security plugin rotates them on a schedule — so ATmosphere can no longer read its saved Bluesky login.', 'atmosphere' );
524
+
case Client::REAUTH_REASON_DECRYPT_FAILED:
525
+
return\__( 'ATmosphere can no longer read its saved Bluesky login.', 'atmosphere' );
526
+
default:
527
+
return\__( 'Your Bluesky session has expired.', 'atmosphere' );
$lead = \__( 'Your site’s security keys have changed — this can happen after a migration, or when a security plugin rotates them on a schedule — so ATmosphere can no longer read its saved Bluesky login.', 'atmosphere' );
0 commit comments