-
Notifications
You must be signed in to change notification settings - Fork 275
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
Document loading older WordPress versions with a Blueprint #994
Comments
@dartiss I would love the PHP Blueprint library to support arbitrary .zip files as the WordPress version – you will then be able to start Playground with WordPress 4.5 :-) Just curious, what's the first WordPress version your plugin supports? And what's the plugin? |
@adamziel my Transient Cleaner plugin only works on WordPress 5.8 or below. |
The other day I was curious and found the earliest tagged version of WordPress https://github.com/WordPress/wordpress-develop/tree/004508b63f772b3c976f2ce4b36e151c69234e26 It would be amusing to re-animate such a historic snapshot of WordPress. (The readme says "PHP version 4.1 or higher".) Even if it doesn't go so far back, Playground would be the perfect "retro emulator" for running older WordPress versions. |
This would be ideal, when I first started using the https://playground.wordpress.net/ site there were older versions of WP in it, I believe 5.8 or 5.9 but they have since been removed. I hoped it was just removed from the UI so I tried modifying the URL to load 5.9 but it seemed to ignore that and load it in 6.4. It would be really helpful if it was possible to load older versions... or at least if you stopped removing versions as new ones were added to the list. At our offices we are running different versions of WP and are usually behind several versions due to how large our environment is. The playground tool is super useful for quick tests or even just checking which features were released in which version of WordPress and seeing it evolve from version to version. |
I'd rather not put these WordPress versions to the UI as:
I still acknowledge they would be highly useful for you, so here's the next best approach. With #1154, you're now able to load older WordPress releases using a custom Blueprint: {
"landingPage": "/wp-admin",
"steps": [
{
"step": "writeFile",
"path": "/tmp/wordpress.zip",
"data": {
"resource": "url",
"url": "https://playground.wordpress.net/plugin-proxy.php?url=https://wordpress.org/wordpress-5.9.9.zip",
"caption": "Downloading the WordPress Release"
}
},
{
"step": "importWordPressFiles",
"wordPressFilesZip": {
"resource": "vfs",
"path": "/tmp/wordpress.zip"
},
"pathInZip": "/wordpress",
"progress": {
"weight": 20,
"caption": "Importing the WordPress release"
}
},
{
"step": "runPHP",
"code": "<?php $_GET['step'] = 'upgrade_db'; require '/wordpress/wp-admin/upgrade.php'; "
},
{
"step": "login",
"username": "admin",
"password": "password"
}
]
} Just need to switch The next steps in this issue would be either of these:
The oldest WordPress version that worked for me this way is I have no plans to work on adding that support as there's a lot of foundational work to make sure Playground is stable, well documented etc. If SQLite on WordPress <= 5.8 is something you could use, you can make it happen by contributing to the SQLite integration plugin – I'm sure @aristats will value your inputs. |
This change enables testing older WordPress releases with the following Blueprint: ```json { "landingPage": "/wp-admin", "steps": [ { "step": "writeFile", "path": "/tmp/wordpress.zip", "data": { "resource": "url", "url": "https://playground.wordpress.net/plugin-proxy.php?url=https://wordpress.org/wordpress-5.9.9.zip", "caption": "Downloading the WordPress Release" } }, { "step": "importWordPressFiles", "wordPressFilesZip": { "resource": "vfs", "path": "/tmp/wordpress.zip" }, "pathInZip": "/wordpress", "progress": { "weight": 20, "caption": "Importing the WordPress release" } }, { "step": "runPHP", "code": "<?php $_GET['step'] = 'upgrade_db'; require '/wordpress/wp-admin/upgrade.php'; " }, { "step": "login", "username": "admin", "password": "password" } ] } ``` [Click here to test](https://playground.wordpress.net/#eyJsYW5kaW5nUGFnZSI6Ii93cC1hZG1pbiIsInN0ZXBzIjpbeyJzdGVwIjoid3JpdGVGaWxlIiwicGF0aCI6Ii90bXAvd29yZHByZXNzLnppcCIsImRhdGEiOnsicmVzb3VyY2UiOiJ1cmwiLCJ1cmwiOiJodHRwczovL3BsYXlncm91bmQud29yZHByZXNzLm5ldC9wbHVnaW4tcHJveHkucGhwP3VybD1odHRwczovL3dvcmRwcmVzcy5vcmcvd29yZHByZXNzLTUuOS45LnppcCIsImNhcHRpb24iOiJEb3dubG9hZGluZyB0aGUgV29yZFByZXNzIFJlbGVhc2UifX0seyJzdGVwIjoiaW1wb3J0V29yZFByZXNzRmlsZXMiLCJ3b3JkUHJlc3NGaWxlc1ppcCI6eyJyZXNvdXJjZSI6InZmcyIsInBhdGgiOiIvdG1wL3dvcmRwcmVzcy56aXAifSwicGF0aEluWmlwIjoiL3dvcmRwcmVzcyIsInByb2dyZXNzIjp7IndlaWdodCI6MjAsImNhcHRpb24iOiJJbXBvcnRpbmcgdGhlIFdvcmRQcmVzcyByZWxlYXNlIn19LHsic3RlcCI6InJ1blBIUCIsImNvZGUiOiI8P3BocCAkX0dFVFsnc3RlcCddID0gJ3VwZ3JhZGVfZGInOyByZXF1aXJlICcvd29yZHByZXNzL3dwLWFkbWluL3VwZ3JhZGUucGhwJzsgIn0seyJzdGVwIjoibG9naW4iLCJ1c2VybmFtZSI6ImFkbWluIiwicGFzc3dvcmQiOiJwYXNzd29yZCJ9XX0=) The oldest WordPress version that worked for me this way is `5.9.9` – I don't think the SQLite integration plugin works with WordPress versions <= 5.8. Related to #994
That's a good place for it. Maybe this could also be a good opportunity to reorder the buttons inside the Additional actions pop-out menu? Happy to take a shot at this in a PR :-) BTW, an interesting tidbit: versions 5.9-6.5 cover 83% of the "market" |
…sing older releases Ensures WordPress 5.9 and 6.0 are no longer referenced in the documentation as they are no longer supported. Provides instructions for people who still need to use them. Closes #994 This is a quick stab at it, feel free to take over @ironnysh, I gave you write permissions so you could update this PR. cc @ironnysh
…sing older releases (#1235) Ensures WordPress 5.9 and 6.0 are no longer referenced in the documentation as they are no longer supported. Also, provides instructions for people who still need to use them: <img width="300" src="https://github.com/WordPress/wordpress-playground/assets/205419/f93937d9-d6b1-4cd2-a2f7-56f84e69896b"> Closes #994 This is a quick stab at it, feel free to take over @ironnysh, I gave you write permissions to the repo so you could update this PR. Closes #994 Co-authored-by: Ronny Shani <[email protected]>
Hi, This blueprint (also available in playground documentation) don’t work anymore.
|
As a developer, the Playground is a great way to test things out quickly. However, I have a specific need for one of my plugins to be able to test on back levels of WordPress (pre Block Editor) and would love to see Playground supporting this (to an extend - probably don't need it running WordPress v1!!).
Would it be possible to implement older releases of WordPress?
The text was updated successfully, but these errors were encountered: