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.



git-svn-id: https://develop.svn.wordpress.org/trunk@53090 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
gziolo committed Apr 7, 2022
1 parent 86c6fb2 commit b3a85cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/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

0 comments on commit b3a85cb

Please sign in to comment.