diff --git a/backport-changelog/6.6/6601.md b/backport-changelog/6.6/6601.md new file mode 100644 index 0000000000000..43847eb2d1f37 --- /dev/null +++ b/backport-changelog/6.6/6601.md @@ -0,0 +1,3 @@ +https://github.com/WordPress/wordpress-develop/pull/6601 + +* https://github.com/WordPress/gutenberg/pull/61844 diff --git a/lib/block-editor-settings.php b/lib/block-editor-settings.php index 53668e114e04c..d98f5d0a94dbb 100644 --- a/lib/block-editor-settings.php +++ b/lib/block-editor-settings.php @@ -146,6 +146,8 @@ function gutenberg_get_block_editor_settings( $settings ) { ); } + $settings['defaultRenderingMode'] = 'post-only'; + return $settings; } add_filter( 'block_editor_settings_all', 'gutenberg_get_block_editor_settings', 0 ); diff --git a/packages/edit-post/src/editor.js b/packages/edit-post/src/editor.js index 378265c192778..f31fbed87cebd 100644 --- a/packages/edit-post/src/editor.js +++ b/packages/edit-post/src/editor.js @@ -78,7 +78,6 @@ function Editor( { ...settings, onNavigateToEntityRecord, onNavigateToPreviousEntityRecord, - defaultRenderingMode: 'post-only', } ), [ settings, onNavigateToEntityRecord, onNavigateToPreviousEntityRecord ] ); diff --git a/packages/editor/src/store/defaults.js b/packages/editor/src/store/defaults.js index e4f86b3a7dfb2..999f16e2d39bb 100644 --- a/packages/editor/src/store/defaults.js +++ b/packages/editor/src/store/defaults.js @@ -29,5 +29,4 @@ export const EDITOR_SETTINGS_DEFAULTS = { codeEditingEnabled: true, fontLibraryEnabled: true, enableCustomFields: undefined, - defaultRenderingMode: 'post-only', };