_local_storage_notice

Output the HTML for restoring the post data from DOM storage.

Description

_local_storage_notice(); 

Usage

  1. if ( !function_exists( '_local_storage_notice' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = _local_storage_notice(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/template.php  
  1. function _local_storage_notice() { 
  2. ?> 
  3. <div id="local-storage-notice" class="hidden notice is-dismissible"> 
  4. <p class="local-restore"> 
  5. <?php _e( 'The backup of this post in your browser is different from the version below.' ); ?> 
  6. <button type="button" class="button restore-backup"><?php _e('Restore the backup'); ?></button> 
  7. </p> 
  8. <p class="help"> 
  9. <?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.' ); ?> 
  10. </p> 
  11. </div> 
  12. <?php