Skip to content

Conversation

@oandregal
Copy link
Member

Fixes https://github.com/WordPress/gutenberg/pull/32377/files#r662092611

The navigation editor doesn't have 'styles' as part of its settings, but still calls the gutenberg_experimental_global_styles_settings function.

@oandregal oandregal requested a review from spacedmonkey as a code owner July 1, 2021 08:42
@oandregal oandregal self-assigned this Jul 1, 2021
@oandregal oandregal requested a review from talldan July 1, 2021 08:42
@oandregal oandregal added [Type] Bug An existing feature does not function as intended Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json labels Jul 1, 2021
Copy link
Contributor

@draganescu draganescu left a comment

Choose a reason for hiding this comment

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

I think this fix is correct as a defensive measure. One can't guarantee that the key will always be there so let's check for that.

@oandregal oandregal merged commit f9eb406 into trunk Jul 1, 2021
@oandregal oandregal deleted the update/cover-against-lack-of-styles branch July 1, 2021 09:13
@github-actions github-actions bot added this to the Gutenberg 11.1 milestone Jul 1, 2021
@talldan
Copy link
Contributor

talldan commented Jul 5, 2021

Thanks @nosolosw!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants