Make WordPress Core


Ignore:
Timestamp:
04/05/2019 04:59:34 PM (7 years ago)
Author:
flixos90
Message:

Administration: Improve user experience and clarify when in recovery mode.

This changeset introduces several changes around usability when recovery mode is active:

  • Display a notice in the admin clarifying that the user is in recovery mode.
  • Use a highlight color for the admin bar link to exit recovery mode.
  • Exit recovery mode automatically when logging out.
  • Include a recovery mode indicator in the title tag.

Props aandrewdixon, azaozz, dhanukanuwan, flixos90, henrywright, karmatosed, mapk, melchoyce, spacedmonkey, TimothyBlynJacobs, tinkerbelly.
See #46608.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r44973 r45117  
    6464    /* translators: Login screen title. 1: Login screen name, 2: Network or site name */
    6565    $login_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, $login_title );
     66
     67    if ( wp_is_recovery_mode() ) {
     68        /* translators: %s: Login screen title. */
     69        $login_title = sprintf( __( '%s — Recovery Mode' ), $login_title );
     70    }
    6671
    6772    /**
Note: See TracChangeset for help on using the changeset viewer.