Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport "Migrate post editor editorMode to use preferences store and remove localAutosaveInterval preference #39180" #2523

Closed
wants to merge 1 commit into from

Conversation

adamziel
Copy link
Contributor

@adamziel adamziel commented Apr 6, 2022

Gutenberg plugin migration to WordPress 6.0 also being tracked in WordPress/gutenberg#39889.

This diff moves the localAutosaveInterval editor setting to the preference store introduced in Gutenberg 12.9.0 to WordPress 6.0

Original Pull Request: WordPress/gutenberg#39180

In summary:

Trac ticket: https://core.trac.wordpress.org/ticket/55505

cc @talldan @noisysocks @michalczaplinski who worked on the original Gutenberg PR

Copy link
Contributor

@talldan talldan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for handling the backport.

@gziolo
Copy link
Member

gziolo commented Apr 7, 2022

@gziolo gziolo closed this Apr 7, 2022
@@ -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;
Copy link

@anton-vlasenko anton-vlasenko Apr 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: it would be nice to move this value (15) to a constant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants