Move _local_storage_notice() to admin/includes/template.php. props azaozz, see #24756.

git-svn-id: https://develop.svn.wordpress.org/trunk@24762 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2013-07-22 05:09:49 +00:00
parent 56f1a3fa32
commit 841d93ed30
3 changed files with 24 additions and 26 deletions

View File

@@ -1929,3 +1929,24 @@ function convert_to_screen( $hook_name ) {
return WP_Screen::get( $hook_name );
}
/**
* Output the HTML for restoring the post data from DOM storage
*
* @since 3.6
* @access private
*/
function _local_storage_notice() {
?>
<div id="local-storage-notice" class="hidden">
<p class="local-restore">
<?php _e('The backup of this post in your browser is different from the version below.'); ?>
<a class="restore-backup" href="#"><?php _e('Restore the backup.'); ?></a>
</p>
<p class="undo-restore hidden">
<?php _e('Post restored successfully.'); ?>
<a class="undo-restore-backup" href="#"><?php _e('Undo.'); ?></a>
</p>
</div>
<?php
}