Skip to content

Commit cb09afb

Browse files
authored
Bump WordPress old version demo to version 6.2.1 (#2460)
## Motivation for the change, related issues The old WordPress demo with blueprint was using a length method by writing a file and installing it, when it is possible to set a zip file in the `wp` property. The version `5.9.9` was updated to `6.2.1`, the lowest version supported by the SQLite integration.
1 parent 86200ed commit cb09afb

File tree

1 file changed

+18
-36
lines changed

1 file changed

+18
-36
lines changed

packages/docs/site/docs/blueprints/08-examples.md

Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -183,44 +183,26 @@ You can share your own Blueprint examples in [this dedicated wiki](https://githu
183183

184184
## Load an older WordPress version
185185

186-
Playground only ships with a few recent WordPress releases. If you need to use an older version, this Blueprint can help you: change the version number in `"url": "https://playground.wordpress.net/plugin-proxy.php?url=https://wordpress.org/wordpress-5.9.9.zip"` from `5.9.9` to the release you want to load.
186+
Playground only ships with a few recent WordPress releases. If you need to use an older version, this Blueprint can help you: change the version number in `"url": "https://playground.wordpress.net/plugin-proxy.php?url=https://wordpress.org/wordpress-6.2.1.zip"` from `6.2.1` to the release you want to load.
187187

188-
**Note:** the oldest supported WordPress version is `5.9.9`, following the SQLite integration plugin.
188+
**Note:** the oldest supported WordPress version is `6.2.1`, following the SQLite integration plugin.
189189

190190
<BlueprintExample blueprint={{
191-
"landingPage": "/wp-admin",
192-
"steps": [
193-
{
194-
"step": "writeFile",
195-
"path": "/tmp/wordpress.zip",
196-
"data": {
197-
"resource": "url",
198-
"url": "https://playground.wordpress.net/plugin-proxy.php?url=https://wordpress.org/wordpress-5.9.9.zip",
199-
"caption": "Downloading the WordPress Release"
200-
}
201-
},
202-
{
203-
"step": "importWordPressFiles",
204-
"wordPressFilesZip": {
205-
"resource": "vfs",
206-
"path": "/tmp/wordpress.zip"
207-
},
208-
"pathInZip": "/wordpress",
209-
"progress": {
210-
"weight": 20,
211-
"caption": "Importing the WordPress release"
212-
}
213-
},
214-
{
215-
"step": "runPHP",
216-
"code": "<?php $_GET['step'] = 'upgrade_db'; require '/wordpress/wp-admin/upgrade.php'; "
217-
},
218-
{
219-
"step": "login",
220-
"username": "admin",
221-
"password": "password"
222-
}
223-
]
191+
"landingPage": "/wp-admin",
192+
"preferredVersions": {
193+
"wp": "https://playground.wordpress.net/plugin-proxy.php?url=https://wordpress.org/wordpress-6.2.1.zip",
194+
"php": "8.3"
195+
},
196+
"features": {
197+
"networking": true
198+
},
199+
"steps": [
200+
{
201+
"step": "login",
202+
"username": "admin",
203+
"password": "password"
204+
}
205+
]
224206
}} />
225207

226208
## Run WordPress from trunk or a specific commit.
@@ -231,7 +213,7 @@ You can specify the reference in `"url": "https://playground.wordpress.net/plugi
231213

232214
To specify the latest commit of a particular branch, you can change the reference to the branch version number, eg `6.6`. To run a specific commit, you can use the commit hash from [WordPress/WordPress](https://github.com/WordPress/WordPress), eg `7d7a52367dee9925337e7d901886c2e9b21f70b6`.
233215

234-
**Note:** the oldest supported WordPress version is `5.9.9`, following the SQLite integration plugin.
216+
**Note:** the oldest supported WordPress version is `6.2.1`, following the SQLite integration plugin.
235217

236218
<BlueprintExample blueprint={{
237219
"landingPage": "/wp-admin",

0 commit comments

Comments
 (0)