Skip to content

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

Merged
adamziel merged 2 commits intotrunkfrom
update/patch-controlled-iframe-in-js
Oct 16, 2023
Merged

WP: Apply the "controlled iframe" patch in JavaScript, not in Dockerfile#703
adamziel merged 2 commits intotrunkfrom
update/patch-controlled-iframe-in-js

Conversation

@adamziel
Copy link
Copy Markdown
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
@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