_local_storage_notice

The timeline below displays how wordpress function _local_storage_notice has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.4

/**
 * Outputs the HTML for restoring the post data from DOM storage
 *
 * @since 3.6.0
 * @access private
 */
function _local_storage_notice()
{
    $local_storage_message = '<p class="local-restore">';
    $local_storage_message .= __('The backup of this post in your browser is different from the version below.');
    $local_storage_message .= '<button type="button" class="button restore-backup">' . __('Restore the backup') . '</button></p>';
    $local_storage_message .= '<p class="help">';
    $local_storage_message .= __('This will replace the current editor content with the last backup version. You can use undo and redo in the editor to get the old content back or to return to the restored version.');
    $local_storage_message .= '</p>';
    wp_admin_notice($local_storage_message, array('id' => 'local-storage-notice', 'additional_classes' => array('hidden'), 'dismissible' => true, 'paragraph_wrap' => false));
}

WordPress Version: 6.1

/**
 * Outputs the HTML for restoring the post data from DOM storage
 *
 * @since 3.6.0
 * @access private
 */
function _local_storage_notice()
{
    ?>
	<div id="local-storage-notice" class="hidden notice is-dismissible">
	<p class="local-restore">
		<?php 
    _e('The backup of this post in your browser is different from the version below.');
    ?>
		<button type="button" class="button restore-backup"><?php 
    _e('Restore the backup');
    ?></button>
	</p>
	<p class="help">
		<?php 
    _e('This will replace the current editor content with the last backup version. You can use undo and redo in the editor to get the old content back or to return to the restored version.');
    ?>
	</p>
	</div>
	<?php 
}

WordPress Version: 4.6

/**
 * Output the HTML for restoring the post data from DOM storage
 *
 * @since 3.6.0
 * @access private
 */
function _local_storage_notice()
{
    ?>
	<div id="local-storage-notice" class="hidden notice is-dismissible">
	<p class="local-restore">
		<?php 
    _e('The backup of this post in your browser is different from the version below.');
    ?>
		<button type="button" class="button restore-backup"><?php 
    _e('Restore the backup');
    ?></button>
	</p>
	<p class="help">
		<?php 
    _e('This will replace the current editor content with the last backup version. You can use undo and redo in the editor to get the old content back or to return to the restored version.');
    ?>
	</p>
	</div>
	<?php 
}

WordPress Version: 4.1

/**
 * Output the HTML for restoring the post data from DOM storage
 *
 * @since 3.6.0
 * @access private
 */
function _local_storage_notice()
{
    ?>
	<div id="local-storage-notice" class="hidden notice">
	<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 
}

WordPress Version: 3.9

/**
 * Output the HTML for restoring the post data from DOM storage
 *
 * @since 3.6.0
 * @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 
}

WordPress Version: 3.7

/**
 * 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 
}