Skip to content

Commit

Permalink
Editor: Add localAutosaveInterval preference to editor settings
Browse files Browse the repository at this point in the history
Backports changes from the Gutenberg plugin. Original PR in Gutenberg: WordPress/gutenberg#39180.

Props zieleadam, talldanwp.
See #55505.


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


git-svn-id: https://core.svn.wordpress.org/trunk@52679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
gziolo committed Apr 7, 2022
1 parent f519d73 commit 8739de1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions wp-includes/block-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8739de1

Please sign in to comment.