summaryrefslogtreecommitdiffstats
path: root/wp-includes/js/dist/preferences-persistence.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
commit0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch)
treee139a90049b158d4eed892d1662ee7f5c358fa31 /wp-includes/js/dist/preferences-persistence.js
parentAdding upstream version 6.5.5+dfsg1. (diff)
downloadwordpress-upstream.tar.xz
wordpress-upstream.zip
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/js/dist/preferences-persistence.js')
-rw-r--r--wp-includes/js/dist/preferences-persistence.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/wp-includes/js/dist/preferences-persistence.js b/wp-includes/js/dist/preferences-persistence.js
index 80ebebe..9016a07 100644
--- a/wp-includes/js/dist/preferences-persistence.js
+++ b/wp-includes/js/dist/preferences-persistence.js
@@ -750,14 +750,14 @@ function convertLegacyData(data) {
data = moveIndividualPreferenceToPreferences(data, {
from: 'core/edit-post',
to: 'core/edit-post'
- }, 'preferredStyleVariations');
- data = moveIndividualPreferenceToPreferences(data, {
- from: 'core/edit-post',
- to: 'core/edit-post'
}, 'panels', convertEditPostPanels);
data = moveIndividualPreferenceToPreferences(data, {
from: 'core/editor',
- to: 'core/edit-post'
+ to: 'core'
+ }, 'isPublishSidebarEnabled');
+ data = moveIndividualPreferenceToPreferences(data, {
+ from: 'core/edit-post',
+ to: 'core'
}, 'isPublishSidebarEnabled');
data = moveIndividualPreferenceToPreferences(data, {
from: 'core/edit-site',
@@ -810,7 +810,7 @@ function convertComplementaryAreas(state) {
function convertEditorSettings(data) {
var _newData$coreEditPo, _newData$coreEditSi;
let newData = data;
- const settingsToMoveToCore = ['allowRightClickOverrides', 'distractionFree', 'editorMode', 'fixedToolbar', 'focusMode', 'hiddenBlockTypes', 'inactivePanels', 'keepCaretInsideBlock', 'mostUsedBlocks', 'openPanels', 'showBlockBreadcrumbs', 'showIconLabels', 'showListViewByDefault'];
+ const settingsToMoveToCore = ['allowRightClickOverrides', 'distractionFree', 'editorMode', 'fixedToolbar', 'focusMode', 'hiddenBlockTypes', 'inactivePanels', 'keepCaretInsideBlock', 'mostUsedBlocks', 'openPanels', 'showBlockBreadcrumbs', 'showIconLabels', 'showListViewByDefault', 'isPublishSidebarEnabled', 'isComplementaryAreaVisible', 'pinnedItems'];
settingsToMoveToCore.forEach(setting => {
if (data?.['core/edit-post']?.[setting] !== undefined) {
newData = {