From b3a85cbd54daa4df08ed882fb6c8e7f333c0ea56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Zi=C3=83=C2=B3=C3=85=E2=80=9Akowski?= Date: Thu, 7 Apr 2022 11:14:46 +0000 Subject: [PATCH] Editor: Add `localAutosaveInterval` preference to editor settings Backports changes from the Gutenberg plugin. Original PR in Gutenberg: https://github.com/WordPress/gutenberg/pull/39180. Props zieleadam, talldanwp. See #55505. git-svn-id: https://develop.svn.wordpress.org/trunk@53090 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/block-editor.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/block-editor.php b/src/wp-includes/block-editor.php index 8f3070af96..c5cb180117 100644 --- a/src/wp-includes/block-editor.php +++ b/src/wp-includes/block-editor.php @@ -394,6 +394,8 @@ function get_block_editor_settings( array $custom_settings, $block_editor_contex unset( $editor_settings['__experimentalFeatures']['spacing']['padding'] ); } + $editor_settings['localAutosaveInterval'] = 15; + /** * Filters the settings to pass to the block editor for all editor type. *