WordPress at Your Fingertips
function is not described

_local_storage_notice() WP 3.6.0

Output the HTML for restoring the post data from DOM storage

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.


null. Nothing.




Since 3.6.0 Introduced.

Code of _local_storage_notice() WP 5.8.2

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 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.' ); ?>