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

[Widgets Screen] Content added in blocks are removed if you deactivate Gutenberg #26217

Closed
annezazu opened this issue Oct 16, 2020 · 2 comments
Closed
Labels
[Feature] Widgets Screen The block-based screen that replaced widgets.php. Needs Dev Ready for, and needs developer efforts [Type] Bug An existing feature does not function as intended

Comments

@annezazu
Copy link
Contributor

Describe the bug

If you activate Gutenberg, add a few blocks to the Widgets Screen, and then deactivate Gutenberg all the block content is lost. If you reactivate Gutenberg, the content returns inconsistently. Sometimes it works, sometimes it doesn't. I'm not sure what the ideal pathway is here but I imagine if people are trying out this screen that it would be helpful to somehow convert blocks into legacy options and the consistency across deactivation/activation needs to be updated.

To reproduce
Steps to reproduce the behavior:

  1. Install Gutenberg and activate.
  2. Head to Appearance > Widgets.
  3. Add a few blocks.
  4. Head to Installed Plugins > Deactivate Gutenberg.
  5. Head to Appearance > Widgets and see all blocks gone.
  6. Head to Installed Plugins > Activate Gutenberg.
  7. Make more changes to blocks.
  8. Head to Installed Plugins > Deactivate Gutenberg.
  9. Head to Appearance > Widgets and see all blocks gone.
  10. Head to Installed Plugins > Activate Gutenberg.
  11. Head to Appearance > Widgets and see weird results :D

Expected behavior

I think I would expect some blocks (like paragraph) to be converted to text widgets. I would expect reactivating Gutenberg wouldn't cause the blocks I did add to get altered in any way (should be able to activate/deactivate and still have same block content).

Screenshots

2 min video showing block's disappearing but consistency in the blocks returning upon reactivating Gutenberg:

https://cloudup.com/cU2UZzN-VE5

1 min video showing inconsistency in block content returning (also ran into weird perms issue that I think is unrelated):

https://cloudup.com/cBdKQMUJK-y

Editor version (please complete the following information):

  • WordPress version: 5.5.1
  • Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? Gutenberg Plugin
  • If the Gutenberg plugin is installed, which version is it? 9.1.1

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome
  • Version: 86.0.4240.75
@annezazu annezazu added [Type] Bug An existing feature does not function as intended Needs Dev Ready for, and needs developer efforts [Feature] Widgets Screen The block-based screen that replaced widgets.php. labels Oct 16, 2020
@noisysocks
Copy link
Member

I can't test this until #27173 is fixed 🙂

@draganescu
Copy link
Contributor

I think that with the Gutenberg plugin deactivated it's normal to not have the blocks in the old widgets screen as the update that enables their preview depends on the plugin being active.

cc @noisysocks to confirm, but I am closing this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Widgets Screen The block-based screen that replaced widgets.php. Needs Dev Ready for, and needs developer efforts [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants