WordPress开发者和主题制作者的搜索引擎



_local_storage_notice ›

Since3.6.0
已弃用n/a
_local_storage_notice ( 没有参数 )
访问:
  • private
定义在:
文档:

Output the HTML for restoring the post data from DOM storage



源码

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
}