# _local_storage_notice()

URL: https://chugunov.pro/api-wordpress/functions/_local_storage_notice/
Проверено на WordPress 6.9, обновлено 06.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией WordPress.

Тип: функция.
Появился в версии: 3.6.0.

## Сигнатура

```php
_local_storage_notice()
```

## Описание

Выводит HTML для восстановления данных записи из хранилища DOM

## Исходный код

Файл: `wp-admin/includes/template.php:2724`

```php
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,
		)
	);
}
```

## История изменений

- 3.6.0 — Introduced.

## Связанные

Использует: [`wp_admin_notice`](https://chugunov.pro/api-wordpress/functions/wp_admin_notice/), [`__`](https://chugunov.pro/api-wordpress/functions/__/).

Оригинал в официальной документации: https://developer.wordpress.org/reference/functions/_local_storage_notice/
