Skip to content

Commit 4182e38

Browse files
authored
[Website] Replace WordPress nightly with trunk (#2916)
1 parent 3da2989 commit 4182e38

23 files changed

+430
-215
lines changed

CHANGELOG.md

Lines changed: 34 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,114 +4,109 @@ All notable changes to this project are documented in this file by a CI job
44
that runs on every NPM release. The file follows the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
55
format.
66

7-
## [v3.0.22] (2025-11-17)
7+
## [v3.0.22] (2025-11-17)
88

99
### Enhancements
1010

11-
1211
#### Boot Flow
1312

14-
- [Boot] Verify permalink structure is actually set. ([#2902](https://github.com/WordPress/wordpress-playground/pull/2902))
13+
- [Boot] Verify permalink structure is actually set. ([#2902](https://github.com/WordPress/wordpress-playground/pull/2902))
1514

1615
### Blueprints
1716

18-
- V1] Rewrite github.com/owner/repo/raw URLs. ([#2892](https://github.com/WordPress/wordpress-playground/pull/2892))
17+
- V1] Rewrite github.com/owner/repo/raw URLs. ([#2892](https://github.com/WordPress/wordpress-playground/pull/2892))
1918

2019
### Documentation
2120

22-
- Document the new GitHub Preview button action. ([#2893](https://github.com/WordPress/wordpress-playground/pull/2893))
23-
- [Docs] Adding link at the documentation sidebar for PR preview link page. ([#2895](https://github.com/WordPress/wordpress-playground/pull/2895))
24-
- [Docs] Documentation Expansion for php-wasm/node. ([#2780](https://github.com/WordPress/wordpress-playground/pull/2780))
25-
- [Docs] Updating sidebar to add Xdebug pages. ([#2881](https://github.com/WordPress/wordpress-playground/pull/2881))
21+
- Document the new GitHub Preview button action. ([#2893](https://github.com/WordPress/wordpress-playground/pull/2893))
22+
- [Docs] Adding link at the documentation sidebar for PR preview link page. ([#2895](https://github.com/WordPress/wordpress-playground/pull/2895))
23+
- [Docs] Documentation Expansion for php-wasm/node. ([#2780](https://github.com/WordPress/wordpress-playground/pull/2780))
24+
- [Docs] Updating sidebar to add Xdebug pages. ([#2881](https://github.com/WordPress/wordpress-playground/pull/2881))
2625

2726
### PHP WebAssembly
2827

29-
- Try avoiding URL.canParse for older version of Safari. ([#2887](https://github.com/WordPress/wordpress-playground/pull/2887))
28+
- Try avoiding URL.canParse for older version of Safari. ([#2887](https://github.com/WordPress/wordpress-playground/pull/2887))
3029

3130
### Website
3231

33-
- Remove "preview WordPress core branch" feature. ([#2894](https://github.com/WordPress/wordpress-playground/pull/2894))
34-
- Support previewing WordPress and Gutenberg branches, not just PRs. ([#2868](https://github.com/WordPress/wordpress-playground/pull/2868))
32+
- Remove "preview WordPress core branch" feature. ([#2894](https://github.com/WordPress/wordpress-playground/pull/2894))
33+
- Support previewing WordPress and Gutenberg branches, not just PRs. ([#2868](https://github.com/WordPress/wordpress-playground/pull/2868))
3534

3635
### Bug Fixes
3736

38-
- [CLI] Fix null and "latest" WP version resolution and improve unzip error message. ([#2889](https://github.com/WordPress/wordpress-playground/pull/2889))
39-
- [CLI] Fix run-cli leak which was revealed by repeated runCLI() calls during test. ([#2888](https://github.com/WordPress/wordpress-playground/pull/2888))
37+
- [CLI] Fix null and "latest" WP version resolution and improve unzip error message. ([#2889](https://github.com/WordPress/wordpress-playground/pull/2889))
38+
- [CLI] Fix run-cli leak which was revealed by repeated runCLI() calls during test. ([#2888](https://github.com/WordPress/wordpress-playground/pull/2888))
4039

41-
###
40+
###
4241

43-
- CLI] Allow API consumers to rely upon option validation and default values. ([#2883](https://github.com/WordPress/wordpress-playground/pull/2883))
42+
- CLI] Allow API consumers to rely upon option validation and default values. ([#2883](https://github.com/WordPress/wordpress-playground/pull/2883))
4443

4544
### Various
4645

47-
- Minor stylistic and punctuation improvements. ([#2884](https://github.com/WordPress/wordpress-playground/pull/2884))
48-
- Revise error messages and coding guidelines. ([#2879](https://github.com/WordPress/wordpress-playground/pull/2879))
49-
- Update footer labels in localization file. ([#2878](https://github.com/WordPress/wordpress-playground/pull/2878))
50-
- [i18n] Add Japanese translations to Blueprints JSON and the API Client and Mount data. ([#2882](https://github.com/WordPress/wordpress-playground/pull/2882))
51-
- [i18n] Adding Italian translations. ([#2865](https://github.com/WordPress/wordpress-playground/pull/2865))
52-
- [i18n] Create contributor-day-table-lead.md for Gujarati. ([#2866](https://github.com/WordPress/wordpress-playground/pull/2866))
53-
- i18n: Full Translation of "Build" to Spanish. ([#2906](https://github.com/WordPress/wordpress-playground/pull/2906))
54-
- i18n: Minor fixes on web-instance.md Spanish translation. ([#2899](https://github.com/WordPress/wordpress-playground/pull/2899))
46+
- Minor stylistic and punctuation improvements. ([#2884](https://github.com/WordPress/wordpress-playground/pull/2884))
47+
- Revise error messages and coding guidelines. ([#2879](https://github.com/WordPress/wordpress-playground/pull/2879))
48+
- Update footer labels in localization file. ([#2878](https://github.com/WordPress/wordpress-playground/pull/2878))
49+
- [i18n] Add Japanese translations to Blueprints JSON and the API Client and Mount data. ([#2882](https://github.com/WordPress/wordpress-playground/pull/2882))
50+
- [i18n] Adding Italian translations. ([#2865](https://github.com/WordPress/wordpress-playground/pull/2865))
51+
- [i18n] Create contributor-day-table-lead.md for Gujarati. ([#2866](https://github.com/WordPress/wordpress-playground/pull/2866))
52+
- i18n: Full Translation of "Build" to Spanish. ([#2906](https://github.com/WordPress/wordpress-playground/pull/2906))
53+
- i18n: Minor fixes on web-instance.md Spanish translation. ([#2899](https://github.com/WordPress/wordpress-playground/pull/2899))
5554

5655
### Contributors
5756

5857
The following contributors merged PRs in this release:
5958

6059
@adamziel @brandonpayton @fellyph @mehrazmorshed @praful2111 @shimotmk @SirLouen @Successfulsebunya
6160

62-
63-
## [v3.0.21] (2025-11-10)
61+
## [v3.0.21] (2025-11-10)
6462

6563
### Bug Fixes
6664

67-
- Docs: Fix grammar, typos, and formatting issues across documentation. ([#2877](https://github.com/WordPress/wordpress-playground/pull/2877))
68-
- Docs: Fix typo in resources.md. ([#2876](https://github.com/WordPress/wordpress-playground/pull/2876))
69-
- docs: Fix MDN link for Access-Control-Allow-Origin header. ([#2875](https://github.com/WordPress/wordpress-playground/pull/2875))
65+
- Docs: Fix grammar, typos, and formatting issues across documentation. ([#2877](https://github.com/WordPress/wordpress-playground/pull/2877))
66+
- Docs: Fix typo in resources.md. ([#2876](https://github.com/WordPress/wordpress-playground/pull/2876))
67+
- docs: Fix MDN link for Access-Control-Allow-Origin header. ([#2875](https://github.com/WordPress/wordpress-playground/pull/2875))
7068

7169
### Various
7270

73-
- [Docs] Adding ask AI Button. ([#2858](https://github.com/WordPress/wordpress-playground/pull/2858))
74-
- [i18n] Add Japanese translations to Blueprints JSON and the API Client. ([#2873](https://github.com/WordPress/wordpress-playground/pull/2873))
71+
- [Docs] Adding ask AI Button. ([#2858](https://github.com/WordPress/wordpress-playground/pull/2858))
72+
- [i18n] Add Japanese translations to Blueprints JSON and the API Client. ([#2873](https://github.com/WordPress/wordpress-playground/pull/2873))
7573

7674
### Contributors
7775

7876
The following contributors merged PRs in this release:
7977

8078
@fellyph @hmbashar @huzaifaalmesbah @shimotmk
8179

82-
83-
## [v3.0.20] (2025-11-06)
80+
## [v3.0.20] (2025-11-06)
8481

8582
### Enhancements
8683

87-
- [CLI] Add --wordpress-install-mode flag. ([#2803](https://github.com/WordPress/wordpress-playground/pull/2803))
84+
- [CLI] Add --wordpress-install-mode flag. ([#2803](https://github.com/WordPress/wordpress-playground/pull/2803))
8885

8986
### Tools
9087

91-
9288
#### PHP WebAssembly
9389

94-
- [PHP.wasm] Major overhaul of URL rewriting and setting $_SERVER variables. ([#2864](https://github.com/WordPress/wordpress-playground/pull/2864))
90+
- [PHP.wasm] Major overhaul of URL rewriting and setting $\_SERVER variables. ([#2864](https://github.com/WordPress/wordpress-playground/pull/2864))
9591

9692
### PHP WebAssembly
9793

98-
- [PHP.wasm] ImageMagick extension. ([#2834](https://github.com/WordPress/wordpress-playground/pull/2834))
94+
- [PHP.wasm] ImageMagick extension. ([#2834](https://github.com/WordPress/wordpress-playground/pull/2834))
9995

10096
### Bug Fixes
10197

102-
- [CLI] Make messaging clearer for errors and Xdebug IDE integration. ([#2869](https://github.com/WordPress/wordpress-playground/pull/2869))
98+
- [CLI] Make messaging clearer for errors and Xdebug IDE integration. ([#2869](https://github.com/WordPress/wordpress-playground/pull/2869))
10399

104100
### Various
105101

106-
- [Docs] Add xdebug testing page. ([#2840](https://github.com/WordPress/wordpress-playground/pull/2840))
102+
- [Docs] Add xdebug testing page. ([#2840](https://github.com/WordPress/wordpress-playground/pull/2840))
107103

108104
### Contributors
109105

110106
The following contributors merged PRs in this release:
111107

112108
@adamziel @brandonpayton @fellyph
113109

114-
115110
## [v3.0.19] (2025-11-04)
116111

117112
### Enhancements

packages/playground/blueprints/src/lib/steps/activate-plugin.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('Blueprint step activatePlugin()', () => {
2323
sqliteIntegrationPluginZip: await getSqliteDriverModule(),
2424
});
2525
php = await handler.getPrimaryPhp();
26-
});
26+
}, 30_000);
2727

2828
afterEach(async () => {
2929
php.exit();

packages/playground/cli/README.md

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
# Table of contents
66

7-
- [Requirements](#requirements)
8-
- [Quickstart](#quickstart)
9-
- [Usage](#usage)
10-
- [Working with Blueprints](#working-with-blueprints)
11-
- [Contributing](#contributing)
7+
- [Requirements](#requirements)
8+
- [Quickstart](#quickstart)
9+
- [Usage](#usage)
10+
- [Working with Blueprints](#working-with-blueprints)
11+
- [Contributing](#contributing)
1212

1313
## Requirements
1414

@@ -64,41 +64,41 @@ npx @wp-playground/cli@latest server --mount-before-install=./my-local-site:/wor
6464

6565
The `--auto-mount` flag is the easiest way to get started. It inspects the current directory and automatically mounts it to the correct location in the virtual WordPress site. These are the supported directory types and how they are detected:
6666

67-
- **Plugin Mode**: Presence of a PHP file with `Plugin Name:` in its header.
68-
- **Theme Mode**: Presence of a style.css file with `Theme Name:` in its header.
69-
- **wp-content Mode**: Presence of plugins and themes subdirectories.
70-
- **WordPress Mode**: Presence of a complete WordPress installation. The directory will be mounted to the root `/wordpress` folder.
67+
- **Plugin Mode**: Presence of a PHP file with `Plugin Name:` in its header.
68+
- **Theme Mode**: Presence of a style.css file with `Theme Name:` in its header.
69+
- **wp-content Mode**: Presence of plugins and themes subdirectories.
70+
- **WordPress Mode**: Presence of a complete WordPress installation. The directory will be mounted to the root `/wordpress` folder.
7171

7272
## Command and Arguments
7373

7474
Playground CLI is simple, configurable, and unopinionated. You can set it up according
7575
to your unique WordPress setup. With the Playground CLI, you can use the following top-level commands:
7676

77-
- **`server`**: (Default) Starts a local WordPress server.
78-
- **`run-blueprint`**: Executes a Blueprint file without starting a web server.
79-
- **`build-snapshot`**: Builds a ZIP snapshot of a WordPress site based on a Blueprint.
77+
- **`server`**: (Default) Starts a local WordPress server.
78+
- **`run-blueprint`**: Executes a Blueprint file without starting a web server.
79+
- **`build-snapshot`**: Builds a ZIP snapshot of a WordPress site based on a Blueprint.
8080

8181
The `server` command supports the following optional arguments:
8282

83-
- `--port=<port>`: The port number for the server to listen on. Defaults to 9400.
84-
- `--outfile`: When building, write to this output file.
85-
- `--wp=<version>`: The version of WordPress to use. Defaults to the latest.
86-
- `--auto-mount`: Automatically mount the current directory (plugin, theme, wp-content, etc.).
87-
- `--mount=<mapping>`: Manually mount a directory (can be used multiple times). Format: /host/path:/vfs/path
88-
- `--mount-before-install`: Mount a directory to the PHP runtime before WordPress installation (can be used multiple times). Format: `"/host/path:/vfs/path"`.
89-
- `--mount-dir`: Mount a directory to the PHP runtime (can be used multiple times). Format: `"/host/path"` `"/vfs/path"`.
90-
- `--mount-dir-before-install`: Mount a directory before WordPress installation (can be used multiple times). Format: `"/host/path"` `"/vfs/path"`
91-
- `--blueprint=<path>`: The path to a JSON Blueprint file to execute.
92-
- `--blueprint-may-read-adjacent-files`: Consent flag: Allow "bundled" resources in a local blueprint to read files in the same directory as the blueprint file.
93-
- `--login`: Automatically log the user in as an administrator.
94-
- `--wordpress-install-mode <mode>`: Control how Playground prepares WordPress before booting. Defaults to `download-and-install`. Other options: `install-from-existing-files` (install using files you've mounted), `install-from-existing-files-if-needed` (same, but skip setup when an existing site is detected), and `do-not-attempt-installing` (never download or install WordPress).
95-
- `--skip-sqlite-setup`: Do not set up the SQLite database integration.
96-
- `--verbosity`: Output logs and progress messages (choices: "quiet", "normal", "debug"). Defaults to "normal".
97-
98-
- `--debug`: Print the PHP error log if an error occurs during boot.
99-
- `--follow-symlinks`: Allow Playground to follow symlinks by automatically mounting symlinked directories and files encountered in mounted directories. ⚠️ Warning: Following symlinks will expose files outside mounted directories to Playground and could be a security risk.
100-
- `--experimental-multi-worker`: Enables experimental multi-worker support. It needs JSPI and a /wordpress directory on a real filesystem. You can pass a positive number to use a specific number of workers, otherwise, it defaults to the number of CPUs minus one.
101-
- `--internal-cookie-store`: Enables Playground's internal cookie handling. When active, Playground uses an HttpCookieStore to manage and persist cookies across requests. If disabled, cookies are handled externally, like by a browser in Node.js.
83+
- `--port=<port>`: The port number for the server to listen on. Defaults to 9400.
84+
- `--outfile`: When building, write to this output file.
85+
- `--wp=<version>`: The version of WordPress to use. Defaults to the latest.
86+
- `--auto-mount`: Automatically mount the current directory (plugin, theme, wp-content, etc.).
87+
- `--mount=<mapping>`: Manually mount a directory (can be used multiple times). Format: /host/path:/vfs/path
88+
- `--mount-before-install`: Mount a directory to the PHP runtime before WordPress installation (can be used multiple times). Format: `"/host/path:/vfs/path"`.
89+
- `--mount-dir`: Mount a directory to the PHP runtime (can be used multiple times). Format: `"/host/path"` `"/vfs/path"`.
90+
- `--mount-dir-before-install`: Mount a directory before WordPress installation (can be used multiple times). Format: `"/host/path"` `"/vfs/path"`
91+
- `--blueprint=<path>`: The path to a JSON Blueprint file to execute.
92+
- `--blueprint-may-read-adjacent-files`: Consent flag: Allow "bundled" resources in a local blueprint to read files in the same directory as the blueprint file.
93+
- `--login`: Automatically log the user in as an administrator.
94+
- `--wordpress-install-mode <mode>`: Control how Playground prepares WordPress before booting. Defaults to `download-and-install`. Other options: `install-from-existing-files` (install using files you've mounted), `install-from-existing-files-if-needed` (same, but skip setup when an existing site is detected), and `do-not-attempt-installing` (never download or install WordPress).
95+
- `--skip-sqlite-setup`: Do not set up the SQLite database integration.
96+
- `--verbosity`: Output logs and progress messages (choices: "quiet", "normal", "debug"). Defaults to "normal".
97+
98+
- `--debug`: Print the PHP error log if an error occurs during boot.
99+
- `--follow-symlinks`: Allow Playground to follow symlinks by automatically mounting symlinked directories and files encountered in mounted directories. ⚠️ Warning: Following symlinks will expose files outside mounted directories to Playground and could be a security risk.
100+
- `--experimental-multi-worker`: Enables experimental multi-worker support. It needs JSPI and a /wordpress directory on a real filesystem. You can pass a positive number to use a specific number of workers, otherwise, it defaults to the number of CPUs minus one.
101+
- `--internal-cookie-store`: Enables Playground's internal cookie handling. When active, Playground uses an HttpCookieStore to manage and persist cookies across requests. If disabled, cookies are handled externally, like by a browser in Node.js.
102102

103103
## Need some help with the CLI?
104104

@@ -165,15 +165,15 @@ cliServer = await runCLI({
165165

166166
### Things the Playground does compared to Laravel Valet
167167

168-
- Handles the entire WordPress installation for you.
169-
- Works across all desktop platforms (Mac, Linux, Windows).
170-
- Does not set up custom host domains for you.
168+
- Handles the entire WordPress installation for you.
169+
- Works across all desktop platforms (Mac, Linux, Windows).
170+
- Does not set up custom host domains for you.
171171

172172
### Things the Playground does compared to `wp-env`
173173

174-
- Does not require Docker.
175-
- Is faster to start up for quick tests and development.
176-
- The Playground doesn't come with a MySQL Server, but you can provide your own MySQL credentials.
174+
- Does not require Docker.
175+
- Is faster to start up for quick tests and development.
176+
- The Playground doesn't come with a MySQL Server, but you can provide your own MySQL credentials.
177177

178178
## Contributing
179179

@@ -216,10 +216,10 @@ WordPress Playground CLI is an open-source project and welcomes all contributors
216216

217217
Here are a few quick-start guides to get you started:
218218

219-
- Code contributions – see the [developer section](https://wordpress.github.io/wordpress-playground/docs/contributing/code).
220-
- Documentation – see the [documentation section](https://wordpress.github.io/wordpress-playground/docs/contributing/documentation).
221-
- Triage – see the [triage section](https://wordpress.github.io/wordpress-playground/contributing/#triaging-issues).
222-
- Contributions to translations – see the [translations section](https://wordpress.github.io/wordpress-playground/contributing/translations).
223-
- Reporting bugs – open an [issue](https://github.com/WordPress/wordpress-playground/issues/new) in the repository.
224-
- Ideas, designs, or anything else – open a [GitHub discussion](https://github.com/WordPress/wordpress-playground/discussions) and let's talk!
225-
- Join our Slack channel [#playground](https://wordpress.slack.com/archives/C04EWKGDJ0K) at Make WordPress
219+
- Code contributions – see the [developer section](https://wordpress.github.io/wordpress-playground/docs/contributing/code).
220+
- Documentation – see the [documentation section](https://wordpress.github.io/wordpress-playground/docs/contributing/documentation).
221+
- Triage – see the [triage section](https://wordpress.github.io/wordpress-playground/contributing/#triaging-issues).
222+
- Contributions to translations – see the [translations section](https://wordpress.github.io/wordpress-playground/contributing/translations).
223+
- Reporting bugs – open an [issue](https://github.com/WordPress/wordpress-playground/issues/new) in the repository.
224+
- Ideas, designs, or anything else – open a [GitHub discussion](https://github.com/WordPress/wordpress-playground/discussions) and let's talk!
225+
- Join our Slack channel [#playground](https://wordpress.slack.com/archives/C04EWKGDJ0K) at Make WordPress

packages/playground/cli/src/is-valid-wordpress-slug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* The version string can be one of the following formats:
66
* - "latest"
77
* - "trunk"
8-
* - "nightly"
8+
* - "trunk" (legacy alias: "nightly")
99
* - "x.y" (x and y are integers) e.g. "6.2"
1010
* - "x.y.z" (x, y and z are integers) e.g. "6.2.1"
1111
* - "x.y.z-betaN" (N is an integer) e.g. "6.2.1-beta1"

0 commit comments

Comments
 (0)