Skip to content

Reset values in wp_persisted_preferences (or full reset?) #34

@joemaller

Description

@joemaller

These seem to be saved from the block editor, it's a big tree of miscellaneous settings. Should we selectively reset values in here or just remove everything so users get the fresh-start "Welcome to the Block Editor" experience?

One very specific problem area is inactivePanels since it breaks our interfaces and is difficult to find. (Block Editor action-kebab menu -> Preferences -> Panels)

Here's a sample with a hidden ACF Field Group:

{
  "core/edit-site": { "welcomeGuide": false },
  "_modified": "2023-01-11T16:50:22.224Z",
  "core/edit-post": {
    "isComplementaryAreaVisible": true,
    "welcomeGuide": false,
    "editorMode": "visual",
    "isPublishSidebarEnabled": false,
    "openPanels": [
      "taxonomy-panel-role",
      "post-status",
      "taxonomy-panel-group",
      "page-attributes"
    ],
    "hiddenBlockTypes": [],
    "inactivePanels": ["meta-box-acf-group_611eb4562da8b"],
    "focusMode": false
  }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions