Make WordPress Core


Ignore:
Timestamp:
07/22/2013 05:09:49 AM (11 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

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

    r24594 r24762  
    666666}
    667667add_filter( 'heartbeat_received', 'wp_refresh_post_nonces', 10, 3 );
    668 
    669 /**
    670  * Output the HTML for restoring the post data from DOM storage
    671  *
    672  * @since 3.6
    673  * @access private
    674  */
    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     <?php
    692 }
    693 add_action( 'admin_footer', '_local_storage_notice' );
Note: See TracChangeset for help on using the changeset viewer.