From 0f319917c48e27dde0503afcee8878e2a2f10571 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 17 Jun 2016 03:01:32 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@37737 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 11 ++-- src/wp-includes/js/autosave.js | 80 +++++++++++++++--------------- 2 files changed, 45 insertions(+), 46 deletions(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index 42833231a6..cc590e3dfd 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -2003,14 +2003,13 @@ function convert_to_screen( $hook_name ) { */ function _local_storage_notice() { ?> -