Changeset 24762 for trunk/wp-admin/includes/misc.php
- Timestamp:
- 07/22/2013 05:09:49 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/misc.php
r24594 r24762 666 666 } 667 667 add_filter( 'heartbeat_received', 'wp_refresh_post_nonces', 10, 3 ); 668 669 /**670 * Output the HTML for restoring the post data from DOM storage671 *672 * @since 3.6673 * @access private674 */675 function _local_storage_notice() {676 $screen = get_current_screen();677 if ( ! $screen || 'post' != $screen->id )678 return;679 680 ?>681 <div id="local-storage-notice" class="hidden">682 <p class="local-restore">683 <?php _e('The backup of this post in your browser is different from the version below.'); ?>684 <a class="restore-backup" href="#"><?php _e('Restore the backup.'); ?></a>685 </p>686 <p class="undo-restore hidden">687 <?php _e('Post restored successfully.'); ?>688 <a class="undo-restore-backup" href="#"><?php _e('Undo.'); ?></a>689 </p>690 </div>691 <?php692 }693 add_action( 'admin_footer', '_local_storage_notice' );
Note: See TracChangeset
for help on using the changeset viewer.