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

WP: Apply the "controlled iframe" patch in JavaScript, not in Dockerfile #703

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

adamziel
Copy link
Collaborator

This PR moves applying a WordPress patch from the Dockerfile, where WP is built into a .data file, to JavaScript, where it can be applied to any arbitrary WordPress installation.

This is needed to patch WordPress branches in Pull Request previewer. See #700.

Testing instructions:

  1. Run Playground with npm run start
  2. Go to the block editor
  3. Confirm that inserter's CSS is loaded (black + icon)
  4. Install the Gutenberg plugin
  5. Confirm that inserter's CSS is still loaded

Related to #668, #646.

This PR moves applying a WordPress patch from the Dockerfile, where WP
is built into a `.data` file, to JavaScript, where it can be applied to
any arbitrary WordPress installation.

This is needed to patch WordPress branches in Pull Request previewer.
See #700.

Testing instructions:

1. Run Playground with `npm run start`
2. Go to the block editor
3. Confirm that inserter's CSS is loaded (black + icon)
4. Install the Gutenberg plugin
5. Confirm that inserter's CSS is still loaded

Related to #668, #646.
@adamziel adamziel force-pushed the update/patch-controlled-iframe-in-js branch from 4bf7559 to d58b563 Compare October 16, 2023 10:04
@adamziel adamziel merged commit eaf5761 into trunk Oct 16, 2023
4 checks passed
@adamziel adamziel deleted the update/patch-controlled-iframe-in-js branch October 16, 2023 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant