Skip to content

Commit 954464f

Browse files
authored
[Docs] Bump PHP version to avoid WordPress PHP version Warning (#2443)
## Motivation for the change, related issues Running a few demos inside the WordPress Documentation is triggering the not-recommended PHP version warning: <img width="873" height="662" alt="Screenshot 2025-07-30 at 14 55 28" src="https://github.com/user-attachments/assets/c586c21f-7858-47a0-93b6-7b5268e58d1b" /> This pull request bumps the demos using a version lower than 8.3 to the recommended version.
1 parent bb6ec45 commit 954464f

File tree

14 files changed

+33
-33
lines changed

14 files changed

+33
-33
lines changed

packages/docs/site/docs/blueprints/01-index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Blueprints are JSON files for setting up your very own WordPress Playground inst
1212
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
1313
"landingPage": "/wp-admin/",
1414
"preferredVersions": {
15-
"php": "8.0",
15+
"php": "8.3",
1616
"wp": "latest"
1717
},
1818
"steps": [
@@ -45,13 +45,13 @@ Blueprints fetch any resources you declare for you. You don't have to worry abou
4545

4646
### You can link to a Blueprint-preconfigured Playground
4747

48-
Because Blueprints can be pasted in the URL, you can embed or link to a Playground with a specific configuration. For example, clicking this button will open a Playground with PHP 7.4 and a pendant theme installed:
48+
Because Blueprints can be pasted in the URL, you can embed or link to a Playground with a specific configuration. For example, clicking this button will open a Playground with PHP 8.3 and a pendant theme installed:
4949

5050
import BlueprintExample from '@site/src/components/Blueprints/BlueprintExample.mdx';
5151

5252
<BlueprintExample justButton={true} blueprint={{
5353
"preferredVersions": {
54-
"php": "7.4",
54+
"php": "8.3",
5555
"wp": "latest"
5656
},
5757
"steps": [

packages/docs/site/docs/blueprints/02-using-blueprints.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ For example, to create a Playground with specific versions of WordPress and PHP
2222
{
2323
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
2424
"preferredVersions": {
25-
"php": "7.4",
25+
"php": "8.3",
2626
"wp": "6.5"
2727
}
2828
}
2929
```
3030

3131
And then you would go to
32-
`https://playground.wordpress.net/#{"preferredVersions":{"php":"7.4","wp":"6.5"}}`.
32+
`https://playground.wordpress.net/#{"preferredVersions":{"php":"8.3","wp":"6.5"}}`.
3333

3434
:::tip
3535
In Javascript, you can get a compact version of any blueprint JSON with [`JSON.stringify`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) and [`JSON.parse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse)
@@ -39,11 +39,11 @@ Example:
3939
const blueprintJson = `{
4040
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
4141
"preferredVersions": {
42-
"php": "7.4",
42+
"php": "8.3",
4343
"wp": "6.5"
4444
}
4545
}`;
46-
const minifiedBlueprintJson = JSON.stringify(JSON.parse(blueprintJson)); // {"preferredVersions":{"php":"7.4","wp":"6.5"}}
46+
const minifiedBlueprintJson = JSON.stringify(JSON.parse(blueprintJson)); // {"preferredVersions":{"php":"8.3","wp":"6.5"}}
4747
```
4848

4949
:::
@@ -54,7 +54,7 @@ import BlueprintExample from '@site/src/components/Blueprints/BlueprintExample.m
5454

5555
<BlueprintExample justButton={true} blueprint={{
5656
"preferredVersions": {
57-
"php": "7.4",
57+
"php": "8.3",
5858
"wp": "6.5"
5959
}
6060
}} />
@@ -74,7 +74,7 @@ Example:
7474
const blueprintJson = `{
7575
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
7676
"preferredVersions": {
77-
"php": "7.4",
77+
"php": "8.3",
7878
"wp": "6.5"
7979
}
8080
}`;
@@ -138,7 +138,7 @@ You can also use Blueprints with the JavaScript API using the `startPlaygroundWe
138138
blueprint: {
139139
landingPage: '/wp-admin/',
140140
preferredVersions: {
141-
php: '8.0',
141+
php: '8.3',
142142
wp: 'latest',
143143
},
144144
steps: [

packages/docs/site/docs/blueprints/03-data-format.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import BlueprintExample from '@site/src/components/Blueprints/BlueprintExample.m
1515
<BlueprintExample blueprint={{
1616
"landingPage": "/wp-admin/",
1717
"preferredVersions": {
18-
"php": "7.4",
18+
"php": "8.3",
1919
"wp": "6.5"
2020
},
2121
"features": {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ To specify the latest commit of a particular branch, you can change the referenc
237237
"landingPage": "/wp-admin",
238238
"login" : true,
239239
"preferredVersions" : {
240-
"php": "8.0",
240+
"php": "8.3",
241241
"wp": "https://playground.wordpress.net/plugin-proxy.php?build-ref=trunk"
242242
}
243243
}} />
@@ -250,7 +250,7 @@ Here's an example of a Blueprint that uses bundled resources from a Blueprint bu
250250
{
251251
"landingPage": "/",
252252
"preferredVersions": {
253-
"php": "8.0",
253+
"php": "8.3",
254254
"wp": "latest"
255255
},
256256
"steps": [

packages/docs/site/docs/blueprints/tutorial/02-how-to-load-run-blueprints.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ Let's say you want to create a Playground with specific versions of WordPress an
1616
{
1717
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
1818
"preferredVersions": {
19-
"php": "7.4",
19+
"php": "8.3",
2020
"wp": "5.9"
2121
}
2222
}
2323
```
2424

25-
To run it, go to `https://playground.wordpress.net/#{"preferredVersions": {"php":"7.4", "wp":"5.9"}}`. You can also use the button below:
25+
To run it, go to `https://playground.wordpress.net/#{"preferredVersions": {"php":"8.3", "wp":"5.9"}}`. You can also use the button below:
2626

27-
[<kbd> &nbsp; Run Blueprint &nbsp; </kbd>](https://playground.wordpress.net/#{"preferredVersions":{"php":"7.4","wp":"5.9"}})
27+
[<kbd> &nbsp; Run Blueprint &nbsp; </kbd>](https://playground.wordpress.net/#{"preferredVersions":{"php":"8.3","wp":"5.9"}})
2828

2929
Use this method to run the example code in the next chapter, [**Build your first Blueprint**](/blueprints/tutorial/build-your-first-blueprint).
3030

packages/docs/site/docs/developers/03-build-an-app/01-index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,15 +161,15 @@ A live plugin demo with a configurable PHP and WordPress makes an excellent comp
161161
With the Query API, you'd simply add the `php` and `wp` query parameters to the URL:
162162

163163
```html
164-
<iframe src="https://playground.wordpress.net/?php=7.4&wp=6.1"></iframe>
164+
<iframe src="https://playground.wordpress.net/?php=8.3&wp=6.1"></iframe>
165165
```
166166

167167
With JSON Blueprints, you'd use the `preferredVersions` property:
168168

169169
```json
170170
{
171171
"preferredVersions": {
172-
"php": "7.4",
172+
"php": "8.3",
173173
"wp": "6.1"
174174
}
175175
}

packages/docs/site/docs/developers/05-local-development/01-wp-now.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ You can also start `wp-now` from any `wp-content` folder. The following example
4040

4141
```bash
4242
cd my-wordpress-folder/wp-content
43-
npx @wp-now/wp-now start --wp=6.4 --php=8.0 --blueprint=path/to/blueprint.json
43+
npx @wp-now/wp-now start --wp=6.4 --php=8.3 --blueprint=path/to/blueprint.json
4444
```
4545

4646
## Install wp-now globally

packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ npx @wp-playground/cli@latest server --auto-mount
3737

3838
### Choosing a WordPress and PHP Version
3939

40-
By default, the CLI loads the latest stable version of WordPress and PHP 8.0 due to its improved performance. To specify your preferred versions, you can use the flag `--wp=<version>` and `--php=<version>`:
40+
By default, the CLI loads the latest stable version of WordPress and PHP 8.3 due to its improved performance. To specify your preferred versions, you can use the flag `--wp=<version>` and `--php=<version>`:
4141

4242
```bash
4343
npx @wp-playground/cli@latest server --wp=6.8 --php=8.4

packages/docs/site/docs/developers/06-apis/javascript-api/04-blueprint-json-in-api-client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const client = await startPlaygroundWeb({
1515
blueprint: {
1616
preferredVersions: {
1717
wp: '6.3',
18-
php: '8.0',
18+
php: '8.3',
1919
},
2020
steps: [
2121
{ step: 'login' },

packages/docs/site/docs/developers/23-architecture/09-browser-tab-orchestrates-execution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function startApp() {
3838
workerUrl, // Valid Worker script URL
3939
{
4040
wpVersion: 'latest',
41-
phpVersion: '7.4', // Startup options
41+
phpVersion: '8.3', // Startup options
4242
}
4343
)
4444
);

0 commit comments

Comments
 (0)