Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
_local_storage_notice() WordPress Function
The local storage notice function is used to store a notice in the browser's local storage. The notice is displayed to the user when they visit the site again.
_local_storage_notice() #
Output the HTML for restoring the post data from DOM storage
Source
File: wp-admin/includes/template.php
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 }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |