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-admin/admin-header.php

    r44639 r45117  
    5151    /* translators: Admin screen title. 1: Admin screen name, 2: Network or site name */
    5252    $admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, $admin_title );
     53}
     54
     55if ( wp_is_recovery_mode() ) {
     56    /* translators: %s: Admin screen title. */
     57    $admin_title = sprintf( __( '%s — Recovery Mode' ), $admin_title );
    5358}
    5459
Note: See TracChangeset for help on using the changeset viewer.