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

Add regenerator-runtime as script dependency (quick fix for WordPress 6.6 breaking change) #1032

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

ecgan
Copy link
Member

@ecgan ecgan commented Jul 5, 2024

Changes proposed in this Pull Request:

Closes #1031. For the cause of issue and related readings on regenerator-runtime, see #1031 (comment).

In this PR, we add regenerator-runtime as a script dependency. This is a quick fix for a breaking change in WordPress 6.6.

I believe we may not need this quick fix in the future when we update the @wordpress/* packages and rely on Dependency Extraction (without bundling the packages).

Detailed test instructions:

  1. Use WordPress 6.6.
  2. Install and activate Pinterest extension with this PR.
  3. Go to the Pinterest plugin landing page: /wp-admin/admin.php?page=wc-admin&path=%2Fpinterest%2Flanding. You should see the landing page nicely. There should be no console error.
  4. Downgrade to WordPress 6.5.
  5. Go to the Pinterest plugin landing page: /wp-admin/admin.php?page=wc-admin&path=%2Fpinterest%2Flanding. You should see the landing page nicely. There should be no console error.

image

This is a quick fix for a breaking change in WordPress 6.6.
@ecgan ecgan added category: compatibility changelog: fix Took care of something that wasn't working. labels Jul 5, 2024
@ecgan ecgan requested a review from a team July 5, 2024 14:34
@ecgan ecgan self-assigned this Jul 5, 2024
@message-dimke message-dimke requested review from message-dimke and removed request for a team July 5, 2024 16:08
Copy link
Contributor

@message-dimke message-dimke left a comment

Choose a reason for hiding this comment

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

I confirm it works with WP 6.6 RC2 now! Thank you, @ecgan !

@ecgan ecgan merged commit f511f28 into develop Jul 8, 2024
4 checks passed
@ecgan ecgan deleted the feature/wp-6.6-regenerator-runtime branch July 8, 2024 12:58
layoutd pushed a commit that referenced this pull request Jul 23, 2024
…runtime

Add regenerator-runtime as script dependency (quick fix for WordPress 6.6 breaking change)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: compatibility changelog: fix Took care of something that wasn't working.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pinterest landing page displays "Not allowed" with WordPress 6.6
2 participants