Skip to content

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
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