Make WordPress Core


Ignore:
Timestamp:
06/17/2016 03:01:32 AM (8 years ago)
Author:
azaozz
Message:

Autosave: improve the notice when the sessionStorage autosave is different than the content.

  • Make it higher priority than the server autosave.
  • Change it so the editors undo and redo can be used.
  • Replace the restore link with a button.
  • Add better explanation/help.

See #37025.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r37573 r37737  
    20042004function _local_storage_notice() {
    20052005    ?>
    2006     <div id="local-storage-notice" class="hidden notice">
     2006    <div id="local-storage-notice" class="hidden notice is-dismissible">
    20072007    <p class="local-restore">
    2008         <?php _e('The backup of this post in your browser is different from the version below.'); ?>
    2009         <a class="restore-backup" href="#"><?php _e('Restore the backup.'); ?></a>
     2008        <?php _e( 'The backup of this post in your browser is different from the version below.' ); ?>
     2009        <button type="button" class="button restore-backup"><?php _e('Restore the backup'); ?></button>
    20102010    </p>
    2011     <p class="undo-restore hidden">
    2012         <?php _e('Post restored successfully.'); ?>
    2013         <a class="undo-restore-backup" href="#"><?php _e('Undo.'); ?></a>
     2011    <p class="help">
     2012        <?php _e( 'This will replace the current editor content with the last backup version. You can use undo and redo in the editor to get the old content back or to return to the restored version.' ); ?>
    20142013    </p>
    20152014    </div>
Note: See TracChangeset for help on using the changeset viewer.