Skip to content

Fix conflict with Jetpack plugin when loading the core/freeform block#2229

Merged
nylen merged 1 commit intomasterfrom
fix/jetpack-grunion-conflict
Aug 4, 2017
Merged

Fix conflict with Jetpack plugin when loading the core/freeform block#2229
nylen merged 1 commit intomasterfrom
fix/jetpack-grunion-conflict

Conversation

@nylen
Copy link
Copy Markdown
Member

@nylen nylen commented Aug 4, 2017

When loading the core/freeform block with Jetpack enabled, this line throws an error and causes a white screen. See Automattic/jetpack#7490.

This PR works around the issue by unhooking the problematic script when loading Gutenberg.

The next version of Jetpack (5.2.2) should contain a fix for this; we should also try to catch errors like this as (sort of) described in #1743.

@nylen nylen requested a review from mtias August 4, 2017 20:39
@nylen nylen added [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended labels Aug 4, 2017
@nylen nylen force-pushed the fix/jetpack-grunion-conflict branch from 03e8c92 to 6092b28 Compare August 4, 2017 20:57
@nylen nylen removed the [Status] In Progress Tracking issues with work in progress label Aug 4, 2017
Copy link
Copy Markdown
Member

@ellatrix ellatrix left a comment

Choose a reason for hiding this comment

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

Sounds good as a very temporary fix.

@nylen
Copy link
Copy Markdown
Member Author

nylen commented Aug 4, 2017

I saw a couple of different manifestations of this error when testing. Here's one; the other was a fully white screen:

2017-08-04t16 42 22-0400

This PR fixes both cases. It's currently @since 0.7.1 which I'm not sure if we're going to do.

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

Labels

[Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants