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.


Built from https://develop.svn.wordpress.org/trunk@53090


git-svn-id: http://core.svn.wordpress.org/trunk@52679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
gziolo 2022-04-07 11:16:06 +00:00
parent a334e05915
commit 030980579d
2 changed files with 3 additions and 1 deletions

View File

@ -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.
*

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.0-alpha-53089';
$wp_version = '6.0-alpha-53090';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.