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/template.php

    r24734 r24762  
    19301930    return WP_Screen::get( $hook_name );
    19311931}
     1932
     1933/**
     1934 * Output the HTML for restoring the post data from DOM storage
     1935 *
     1936 * @since 3.6
     1937 * @access private
     1938 */
     1939function _local_storage_notice() {
     1940    ?>
     1941    <div id="local-storage-notice" class="hidden">
     1942    <p class="local-restore">
     1943        <?php _e('The backup of this post in your browser is different from the version below.'); ?>
     1944        <a class="restore-backup" href="#"><?php _e('Restore the backup.'); ?></a>
     1945    </p>
     1946    <p class="undo-restore hidden">
     1947        <?php _e('Post restored successfully.'); ?>
     1948        <a class="undo-restore-backup" href="#"><?php _e('Undo.'); ?></a>
     1949    </p>
     1950    </div>
     1951    <?php
     1952}
Note: See TracChangeset for help on using the changeset viewer.