Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Blockbase + children: remove __unstableLocation#6759

Merged
jffng merged 3 commits intotrunkfrom
try/remove-unstable-location
Jan 9, 2023
Merged

Blockbase + children: remove __unstableLocation#6759
jffng merged 3 commits intotrunkfrom
try/remove-unstable-location

Conversation

@jffng
Copy link
Contributor

@jffng jffng commented Dec 2, 2022

Changes proposed in this Pull Request:

WordPress/gutenberg#45976 added a fallback for classic menus assigned to the primary location or named primary.

Once that lands in the plugin (14.8), we should be able to safely remove this attribute without breaking user's navigations.

To test

  • Activate one of these themes and create a classic menu, assign it to the primary location
  • Switch to this PR
  • Verify the navigation appears as expected in the front end and site editor

Related issue(s):

Fixes #6738

return false;
}

// The block should have an unstable location attribute.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there still value in including this now that the __unstableLocation is gone?
I don't see any themes that provide a custom.navigation/social-links value.

What other value does this provide? Can we get rid of it completely?

Copy link
Contributor Author

@jffng jffng Dec 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree that for that reason it should stay. The remainder of what's left is unconnected to __unstableLocation and removing it just removes functionality.

Copy link
Contributor

@pbking pbking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the change we need. It's refreshing to get that attribute out.

This can ship once Gutenberg 14.8 is available on wpcom simple sites.

@jffng jffng force-pushed the try/remove-unstable-location branch from 84a9a6a to 2f2787d Compare January 9, 2023 02:58
@jffng jffng merged commit 1a470ad into trunk Jan 9, 2023
@jffng jffng deleted the try/remove-unstable-location branch January 9, 2023 02:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Eliminate __unstableLocation

2 participants