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-includes/class-wp-recovery-mode.php

    r44973 r45117  
    8383        $this->is_initialized = true;
    8484
     85        add_action( 'wp_logout', array( $this, 'exit_recovery_mode' ) );
    8586        add_action( 'login_form_' . self::EXIT_ACTION, array( $this, 'handle_exit_recovery_mode' ) );
    8687
Note: See TracChangeset for help on using the changeset viewer.