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

Support multiple wp versions #101

Merged
merged 11 commits into from
Jan 3, 2023
Merged

Support multiple wp versions #101

merged 11 commits into from
Jan 3, 2023

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented Dec 30, 2022

Description

This Pull Request adds support for switching WordPress versions via a query parameter, e.g. ?wp=5.9.

After applying:

  • WordPress data module is built to a file with a specified name, e.g. build/wp-6.0.js and build/wp-6.0.data
  • WordPress static assets are moved to a subdirectory, e.g. build/wp-6.0
  • Service Worker rewrites any static-looking requests from /scope:<number>/ to appropriate subdirectory, e.g. /wp-6.0/

This PR comes with prebuilt assets for WordPress 5.9, 6.0, 6.1, and the current nightly release.

Left to do:
* Serve the correct server-hosted assets instead of a single, specific
  version of them (from /wp-content etc)
* Fix the nightly build
* Preserve the latest theme when building wp.data, not the hardcoded
  theme
@adamziel adamziel self-assigned this Dec 30, 2022
@adamziel adamziel changed the title Multiple wp versions Support multiple wp versions Dec 30, 2022
@adamziel adamziel merged commit ffe52fe into trunk Jan 3, 2023
@adamziel adamziel deleted the multiple-wp-versions branch January 3, 2023 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant