Skip to content

[CLI] Add WordPress constants using CLI arguments #1811

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

Closed
wants to merge 337 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
337 commits
Select commit Hold shift + click to select a range
4255bda
Change language from Site to Playground
adamziel Sep 14, 2024
9f0e676
Merge branch 'trunk' into routing
bgrgicak Sep 16, 2024
ce5ef1d
Fix URL blueprint literal parsing to decode Base64 string
brandonpayton Sep 17, 2024
da9384e
Use structuredClone() to deep clone blueprint
brandonpayton Sep 17, 2024
fe2ce73
Avoid top-level declarations that are only used to initialize other t…
brandonpayton Sep 17, 2024
519e50f
Fix single char typo
brandonpayton Sep 17, 2024
1c1ee48
Remove stale comment
brandonpayton Sep 17, 2024
a4f90f2
Note possibilities for edit/fork existing site
brandonpayton Sep 18, 2024
a8b62c8
Clarify a bit about local FS availability detection
brandonpayton Sep 18, 2024
9df2f79
Add locale list TODO
brandonpayton Sep 18, 2024
0d9af8a
Add sync-local-files-button TODO
brandonpayton Sep 18, 2024
180f6e0
Fix restore-from-zip ARIA label
brandonpayton Sep 18, 2024
20647bd
Remove unused generateUniqueSiteName function
brandonpayton Sep 18, 2024
43d17cc
Allow deletion of broken sites with loading errors
brandonpayton Sep 18, 2024
f45d1c4
Fix saving temporary sites in Safari
brandonpayton Sep 18, 2024
d8d7225
Allow a limited number of concurrent writes in Safari
brandonpayton Sep 18, 2024
6197165
Continue writing files as soon as possible in Safari
brandonpayton Sep 18, 2024
f9831a2
Redirect to the updated site instead of passing a stub
brandonpayton Sep 19, 2024
b16eb95
Restore bug-related TODO until we confirm it is resolved
brandonpayton Sep 19, 2024
387337a
Remove unused siteSlug prop from StartPlaygroundOptions
brandonpayton Sep 19, 2024
092a895
Restore supplemental types needed for FileSystemDirectoryHandle methods
brandonpayton Sep 19, 2024
b881ece
Login using a custom script instead from the wp-login page
bgrgicak Sep 20, 2024
789cc80
Ensure WordPress directory exists
bgrgicak Sep 20, 2024
bbf4e76
Use docroot in login
bgrgicak Sep 20, 2024
6169c26
Use createSyncAccessHandle for all browsers because it has been faste…
brandonpayton Sep 21, 2024
f9accc8
Clean up metadata writer worker a bit
brandonpayton Sep 21, 2024
e306b74
Address memfs-to-OPFS performance in Safari
brandonpayton Sep 21, 2024
af97321
Merge branch 'trunk' into routing
brandonpayton Sep 23, 2024
4ac62c3
Make sure all OPFS writes settle before resolving copyMemfsToOpfs()
brandonpayton Sep 23, 2024
27ede18
Expose temp-to-OPFS error to the user
brandonpayton Sep 23, 2024
670d158
Support retrying OPFS save after initial failure
brandonpayton Sep 23, 2024
e2fd6ee
Fix login by default
bgrgicak Sep 17, 2024
a4d6709
Fix default PHP and WP versions
bgrgicak Sep 16, 2024
af41a96
Autoload mu-plugin
bgrgicak Sep 24, 2024
098d557
Merge branch 'trunk' into fix/1706-login-with-site-email-verification
bgrgicak Sep 24, 2024
f2c8a43
Fix autologin
bgrgicak Sep 24, 2024
3f3dadc
Remove unused import
bgrgicak Sep 24, 2024
0bbb682
Revert "Use docroot in login"
bgrgicak Sep 24, 2024
b86839d
Fix description
bgrgicak Sep 24, 2024
5f1c30a
Preload playground-login.php
bgrgicak Sep 24, 2024
a4bd32b
Update readme
bgrgicak Sep 24, 2024
e408d18
Remove import
bgrgicak Sep 24, 2024
ddcf636
Fix multisite step
bgrgicak Sep 24, 2024
d6f37ab
Migrate legacy sites to modern sites on-demand
brandonpayton Sep 25, 2024
53c3ecb
Remove PHP 7.0 incompatible code
bgrgicak Sep 25, 2024
ab3123a
Use WP CLI for enabling multisites
bgrgicak Sep 25, 2024
265042b
Switch to using constants for logins
bgrgicak Sep 25, 2024
744e291
Disable caching on playground.test
bgrgicak Sep 25, 2024
d46f757
Add constants arg
bgrgicak Sep 25, 2024
cc61d5d
Add install-wp-cli step
bgrgicak Sep 25, 2024
5952ba7
Force login on wp-login.php
bgrgicak Sep 25, 2024
91ef096
Stop adding a default password to Blueprint login step
brandonpayton Sep 26, 2024
b23e5cb
Update login tests to account for expected redirects
brandonpayton Sep 26, 2024
d713821
Add sapi name CLI
bgrgicak Sep 26, 2024
baeee9d
Merge branch 'trunk' into routing
bgrgicak Sep 26, 2024
0b8b359
Add Playwright tests for UI redesign changes (#1769)
bgrgicak Sep 26, 2024
5c9cf76
Fix document root
bgrgicak Sep 26, 2024
8531f1f
Merge branch 'routing' into fix/1706-login-with-site-email-verification
bgrgicak Sep 26, 2024
fc8ac78
Login on enableMultisite e2e tests
bgrgicak Sep 26, 2024
db318e4
Install wp-cli if a wp-cli step exists
bgrgicak Sep 26, 2024
5d16ff7
Fix install wp-cli for wp-cli step
bgrgicak Sep 26, 2024
f3f0cc9
Fix login test
bgrgicak Sep 26, 2024
3b8298c
Rewrite multisite tests to check for constants
bgrgicak Sep 26, 2024
83b1a44
Remove long timeouts
bgrgicak Sep 26, 2024
742b432
Disable verification screen for autologin
bgrgicak Sep 26, 2024
30d5eeb
Remove install-wp-cli step
bgrgicak Sep 26, 2024
6641674
Apply suggestions from code review
bgrgicak Sep 26, 2024
bbaf057
Don't install wp-cli every time
bgrgicak Sep 26, 2024
efba439
Don't install wp-cli every time
bgrgicak Sep 26, 2024
7a2fb71
Cleanup, document, fix unit tests, move the autologin plugin to the `…
adamziel Sep 26, 2024
1f92b33
Only support force_auto_login GET parameter if it's explicitly enabled
adamziel Sep 26, 2024
69dffcb
Remove the extra require
adamziel Sep 26, 2024
df2eeb4
Revert "Use createSyncAccessHandle for all browsers because it has be…
brandonpayton Sep 26, 2024
0dcf4ac
Add more log messages for moving legacy OPFS sites
brandonpayton Sep 26, 2024
dc1217d
Speed up saving site to local FS
brandonpayton Sep 27, 2024
568b9a4
Stop overlapping text with long name in site info view
brandonpayton Sep 27, 2024
7e6e7b2
Stop temp site notice from forcing mobile open-site buttons off botto…
brandonpayton Sep 27, 2024
da2fb8d
Make open-site label consistent among site info view buttons
brandonpayton Sep 27, 2024
494c975
Update multisite tests
bgrgicak Sep 27, 2024
886648a
More fixes for bottom buttons in mobile site info view
brandonpayton Sep 27, 2024
00d2d05
Fix wp-login.php auto-login
bgrgicak Sep 27, 2024
862351e
Add should log the user in if the auto login parameter is set test
bgrgicak Sep 27, 2024
ad6218d
Merge branch 'routing' into fix/1706-login-with-site-email-verification
bgrgicak Sep 27, 2024
5c0c614
Merge branch 'fix/1706-login-with-site-email-verification' into add/c…
bgrgicak Sep 27, 2024
fafcc8e
Fix login page error
bgrgicak Sep 27, 2024
358ed2a
Prevent error if $_SERVER['SCRIPT_NAME'] doesn't exist
bgrgicak Sep 27, 2024
840bee7
Merge branch 'fix/1706-login-with-site-email-verification' into add/c…
bgrgicak Sep 27, 2024
1f9083c
Fix login unit tests
bgrgicak Sep 27, 2024
4ea6715
Merge branch 'fix/1706-login-with-site-email-verification' into add/c…
bgrgicak Sep 27, 2024
22d7ae8
Rename tests
bgrgicak Sep 27, 2024
559086b
Recompile WordPress major and beta versions
Oct 2, 2024
3e79558
Recompile WordPress major and beta versions
Oct 2, 2024
6cbc82f
Recompile WordPress major and beta versions
Oct 2, 2024
22cd223
Recompile WordPress major and beta versions
Oct 2, 2024
ee212cc
Recompile WordPress major and beta versions
Oct 2, 2024
27c28dc
Recompile WordPress major and beta versions
Oct 2, 2024
251ad2e
Recompile WordPress major and beta versions
Oct 2, 2024
0a64f9f
Recompile WordPress major and beta versions
Oct 2, 2024
209d023
Recompile WordPress major and beta versions
Oct 2, 2024
aca8b06
Recompile WordPress major and beta versions
Oct 2, 2024
a521a3f
Recompile WordPress major and beta versions
Oct 2, 2024
2e5c311
Recompile WordPress major and beta versions
Oct 2, 2024
59a03e5
Recompile WordPress major and beta versions
Oct 2, 2024
18d8364
Recompile WordPress major and beta versions
Oct 2, 2024
d45db3e
Recompile WordPress major and beta versions
Oct 2, 2024
b3d1886
Recompile WordPress major and beta versions
Oct 2, 2024
2ef1461
Recompile WordPress major and beta versions
Oct 2, 2024
521e464
Recompile WordPress major and beta versions
Oct 2, 2024
0dae02b
Refresh WordPress Nightly
Oct 2, 2024
1821756
Recompile WordPress major and beta versions
Oct 2, 2024
421c9fa
Recompile WordPress major and beta versions
Oct 2, 2024
e1edb15
Recompile WordPress major and beta versions
Oct 2, 2024
604820f
Recompile WordPress major and beta versions
Oct 2, 2024
e1c13dc
Recompile WordPress major and beta versions
Oct 2, 2024
122c846
Recompile WordPress major and beta versions
Oct 2, 2024
147679d
Recompile WordPress major and beta versions
Oct 2, 2024
078cac5
Recompile WordPress major and beta versions
Oct 2, 2024
ea35746
Recompile WordPress major and beta versions
Oct 2, 2024
9ea05ec
Recompile WordPress major and beta versions
Oct 2, 2024
a62d215
Recompile WordPress major and beta versions
Oct 2, 2024
a1e1cb0
Recompile WordPress major and beta versions
Oct 2, 2024
83f3404
Recompile WordPress major and beta versions
Oct 2, 2024
7bc2112
Recompile WordPress major and beta versions
Oct 2, 2024
c150bf5
Recompile WordPress major and beta versions
Oct 2, 2024
cc31679
Recompile WordPress major and beta versions
Oct 2, 2024
3115625
Recompile WordPress major and beta versions
Oct 2, 2024
65c6535
Recompile WordPress major and beta versions
Oct 2, 2024
8220049
Recompile WordPress major and beta versions
Oct 2, 2024
c8bacb5
Recompile WordPress major and beta versions
Oct 2, 2024
ae66b03
Recompile WordPress major and beta versions
Oct 2, 2024
5d7d6ff
Recompile WordPress major and beta versions
Oct 2, 2024
673ed32
Recompile WordPress major and beta versions
Oct 2, 2024
d69a530
Recompile WordPress major and beta versions
Oct 2, 2024
a4d7e70
Recompile WordPress major and beta versions
Oct 2, 2024
35cc211
Recompile WordPress major and beta versions
Oct 2, 2024
42baf84
Recompile WordPress major and beta versions
Oct 2, 2024
985a663
Recompile WordPress major and beta versions
Oct 2, 2024
a925825
Recompile WordPress major and beta versions
Oct 2, 2024
689a5a7
Recompile WordPress major and beta versions
Oct 2, 2024
978f7cf
Recompile WordPress major and beta versions
Oct 2, 2024
4b63134
Recompile WordPress major and beta versions
Oct 2, 2024
ec41198
Recompile WordPress major and beta versions
Oct 2, 2024
5cd4688
Recompile WordPress major and beta versions
Oct 2, 2024
41649c1
Webapp upgrade protocol: Disable HTTP caching and reload other browse…
adamziel Oct 2, 2024
57cd21f
Recompile WordPress major and beta versions
Oct 2, 2024
0108668
Recompile WordPress major and beta versions
Oct 2, 2024
de6041b
Recompile WordPress major and beta versions
Oct 2, 2024
94d11c4
Recompile WordPress major and beta versions
Oct 2, 2024
65e715a
Recompile WordPress major and beta versions
Oct 2, 2024
00ff11a
Recompile WordPress major and beta versions
Oct 2, 2024
d03af85
Recompile WordPress major and beta versions
Oct 2, 2024
11b2987
Recompile WordPress major and beta versions
Oct 2, 2024
8fee204
Recompile WordPress major and beta versions
Oct 2, 2024
1b50d89
Recompile WordPress major and beta versions
Oct 2, 2024
5bff99a
Recompile WordPress major and beta versions
Oct 2, 2024
4671fd9
Recompile WordPress major and beta versions
Oct 2, 2024
d1d4b6b
Recompile WordPress major and beta versions
Oct 2, 2024
859bb12
Recompile WordPress major and beta versions
Oct 3, 2024
b4698dd
Recompile WordPress major and beta versions
Oct 3, 2024
9f2b5e6
Recompile WordPress major and beta versions
Oct 3, 2024
96eedac
Recompile WordPress major and beta versions
Oct 3, 2024
1c6bd07
Recompile WordPress major and beta versions
Oct 3, 2024
fd2f5b4
Recompile WordPress major and beta versions
Oct 3, 2024
85b5f43
Recompile WordPress major and beta versions
Oct 3, 2024
f108bfd
Recompile WordPress major and beta versions
Oct 3, 2024
b579cdd
Recompile WordPress major and beta versions
Oct 3, 2024
ba45bb8
Recompile WordPress major and beta versions
Oct 3, 2024
10135ce
Recompile WordPress major and beta versions
Oct 3, 2024
66a35a8
Recompile WordPress major and beta versions
Oct 3, 2024
0eb8e3e
Recompile WordPress major and beta versions
Oct 3, 2024
3796ab7
Recompile WordPress major and beta versions
Oct 3, 2024
6597b62
Recompile WordPress major and beta versions
Oct 3, 2024
d8eed87
Recompile WordPress major and beta versions
Oct 3, 2024
1f64b72
Recompile WordPress major and beta versions
Oct 3, 2024
ec1c5ae
Recompile WordPress major and beta versions
Oct 3, 2024
39224d1
Recompile WordPress major and beta versions
Oct 3, 2024
ce2b668
Recompile WordPress major and beta versions
Oct 3, 2024
8c72ead
Recompile WordPress major and beta versions
Oct 3, 2024
eeec4cd
Refresh WordPress Nightly
Oct 3, 2024
5ae675c
Recompile WordPress major and beta versions
Oct 3, 2024
b36f591
Recompile WordPress major and beta versions
Oct 3, 2024
a84be08
Recompile WordPress major and beta versions
Oct 3, 2024
8da234b
Recompile WordPress major and beta versions
Oct 3, 2024
72d9e2a
Recompile WordPress major and beta versions
Oct 3, 2024
a389526
Recompile WordPress major and beta versions
Oct 3, 2024
41b04bc
Recompile WordPress major and beta versions
Oct 3, 2024
9e85f37
Recompile WordPress major and beta versions
Oct 3, 2024
438516e
Recompile WordPress major and beta versions
Oct 3, 2024
b466dec
Recompile WordPress major and beta versions
Oct 3, 2024
069ba33
Merge trunk
bgrgicak Oct 3, 2024
9d8679b
Recompile WordPress major and beta versions
Oct 3, 2024
dcfa43d
Add login test
bgrgicak Oct 3, 2024
148148b
Use is_login to detect the login page
bgrgicak Oct 3, 2024
3ca6e6d
Recompile WordPress major and beta versions
Oct 3, 2024
8e8a906
Add http test to login tests
bgrgicak Oct 3, 2024
79424fd
revert changelog changes
bgrgicak Oct 3, 2024
9c222f5
Recompile WordPress major and beta versions
Oct 3, 2024
8cc7dca
Rename get_playground_auto_login_as_user
bgrgicak Oct 3, 2024
e9757cd
Apply suggestions from code review
bgrgicak Oct 3, 2024
1ea2379
Recompile WordPress major and beta versions
Oct 3, 2024
d306d9e
Recompile WordPress major and beta versions
Oct 3, 2024
9d5be0a
Recompile WordPress major and beta versions
Oct 3, 2024
955e2c3
Recompile WordPress major and beta versions
Oct 3, 2024
8b4059d
Recompile WordPress major and beta versions
Oct 3, 2024
2e553b0
Recompile WordPress major and beta versions
Oct 3, 2024
0df0963
Recompile WordPress major and beta versions
Oct 3, 2024
8f5b6ce
Recompile WordPress major and beta versions
Oct 3, 2024
5e65baf
Recompile WordPress major and beta versions
Oct 3, 2024
27a5edd
Recompile WordPress major and beta versions
Oct 3, 2024
1424833
Recompile WordPress major and beta versions
Oct 3, 2024
f6e0aeb
Recompile WordPress major and beta versions
Oct 3, 2024
606f580
Recompile WordPress major and beta versions
Oct 3, 2024
44b2064
Recompile WordPress major and beta versions
Oct 3, 2024
961d914
Recompile WordPress major and beta versions
Oct 3, 2024
d61b35f
Recompile WordPress major and beta versions
Oct 3, 2024
ddce395
Add Install instructions to the Playwright README (#1837)
akirk Oct 3, 2024
416b933
Docs: review playground docs translations page (#1826)
juanmaguitar Oct 3, 2024
b7bab1a
Recompile WordPress major and beta versions
Oct 3, 2024
79017d4
Recompile WordPress major and beta versions
Oct 3, 2024
6fe5802
Recompile WordPress major and beta versions
Oct 3, 2024
5d9c8bb
Recompile WordPress major and beta versions
Oct 3, 2024
f1f5272
Recompile WordPress major and beta versions
Oct 3, 2024
b41f89d
Recompile WordPress major and beta versions
Oct 3, 2024
4af2149
Recompile WordPress major and beta versions
Oct 3, 2024
feb9ee6
Recompile WordPress major and beta versions
Oct 3, 2024
2ea69ec
Docs: Playground PR previews through GitHub actions (#1825)
juanmaguitar Oct 3, 2024
ff4c525
Docs: Disable localeDropdown until more pages are translated (#1824)
juanmaguitar Oct 3, 2024
f57f23a
Recompile WordPress major and beta versions
Oct 3, 2024
2bcecbc
Recompile WordPress major and beta versions
Oct 3, 2024
2f7074f
Recompile WordPress major and beta versions
Oct 3, 2024
611bbfa
Recompile WordPress major and beta versions
Oct 3, 2024
61b4227
Recompile WordPress major and beta versions
Oct 3, 2024
374e75b
Recompile WordPress major and beta versions
Oct 3, 2024
0185486
Recompile WordPress major and beta versions
Oct 3, 2024
9d2f86a
Disable WordPress major and beta refreshes
adamziel Oct 3, 2024
f06ed28
Refresh WordPress Nightly
Oct 3, 2024
26085fc
Add Install instructions to the Playwright README (#1837)
akirk Oct 3, 2024
618054d
Docs: review playground docs translations page (#1826)
juanmaguitar Oct 3, 2024
8af8363
Docs: Playground PR previews through GitHub actions (#1825)
juanmaguitar Oct 3, 2024
0f36073
Docs: Disable localeDropdown until more pages are translated (#1824)
juanmaguitar Oct 3, 2024
80a4518
Disable WordPress major and beta refreshes
adamziel Oct 3, 2024
d4cd8ab
Merge branch 'remove/broken-wordpress-refreshes' into trunk
bgrgicak Oct 4, 2024
f9d99fa
Merge branch 'trunk' into fix/1706-login-with-site-email-verification
bgrgicak Oct 4, 2024
bee9abe
Merge branch 'trunk' into fix/1706-login-with-site-email-verification
bgrgicak Oct 4, 2024
bd39008
Fix theme imports
bgrgicak Oct 4, 2024
84ea941
Merge branch 'trunk' into fix/1706-login-with-site-email-verification
bgrgicak Oct 4, 2024
c98018d
Merge branch 'trunk' into fix/1706-login-with-site-email-verification
bgrgicak Oct 7, 2024
2b6bc05
Remove only
bgrgicak Oct 7, 2024
946b410
Fix WP 6.3 support with defined('REST_REQUEST')
bgrgicak Oct 7, 2024
c5bda6f
Merge branch 'fix/1706-login-with-site-email-verification' into add/c…
bgrgicak Oct 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 23 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,89 +4,86 @@ All notable changes to this project are documented in this file by a CI job
that runs on every NPM release. The file follows the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
format.

## [v0.9.46] (2024-10-07)
## [v0.9.46] (2024-10-07)

### Enhancements

- Webapp upgrade protocol: Disable HTTP caching and reload other browser tabs to prevent fatal errors after new deployments. ([#1822](https://github.com/WordPress/wordpress-playground/pull/1822))
- Webapp upgrade protocol: Disable HTTP caching and reload other browser tabs to prevent fatal errors after new deployments. ([#1822](https://github.com/WordPress/wordpress-playground/pull/1822))

### Documentation

- Docs: Disable localeDropdown until more pages are translated. ([#1824](https://github.com/WordPress/wordpress-playground/pull/1824))
- Docs: Review playground documentation translations page. ([#1826](https://github.com/WordPress/wordpress-playground/pull/1826))
- Docs: Playground PR previews through GitHub actions. ([#1825](https://github.com/WordPress/wordpress-playground/pull/1825))
- Docs: Disable localeDropdown until more pages are translated. ([#1824](https://github.com/WordPress/wordpress-playground/pull/1824))
- Docs: Review playground documentation translations page. ([#1826](https://github.com/WordPress/wordpress-playground/pull/1826))
- Docs: Playground PR previews through GitHub actions. ([#1825](https://github.com/WordPress/wordpress-playground/pull/1825))

### Website

- Use site slug as a stable scope. ([#1839](https://github.com/WordPress/wordpress-playground/pull/1839))
- Close Playground Manager by default. ([#1831](https://github.com/WordPress/wordpress-playground/pull/1831))
- Fix go-to-site menu items to reveal site view. ([#1833](https://github.com/WordPress/wordpress-playground/pull/1833))
- Use site slug as a stable scope. ([#1839](https://github.com/WordPress/wordpress-playground/pull/1839))
- Close Playground Manager by default. ([#1831](https://github.com/WordPress/wordpress-playground/pull/1831))
- Fix go-to-site menu items to reveal site view. ([#1833](https://github.com/WordPress/wordpress-playground/pull/1833))

### Various

- Add Install instructions to the Playwright README. ([#1837](https://github.com/WordPress/wordpress-playground/pull/1837))
- Resolve end-to-end failures. ([#1844](https://github.com/WordPress/wordpress-playground/pull/1844))
- Add Install instructions to the Playwright README. ([#1837](https://github.com/WordPress/wordpress-playground/pull/1837))
- Resolve end-to-end failures. ([#1844](https://github.com/WordPress/wordpress-playground/pull/1844))

### Contributors

The following contributors merged PRs in this release:

@adamziel @akirk @brandonpayton @juanmaguitar


## [v0.9.45] (2024-09-30)
## [v0.9.45] (2024-09-30)

### Blueprints

- Translate GitHub.com file URLs into CORS-accessible raw.githubusercontent.com. ([#1810](https://github.com/WordPress/wordpress-playground/pull/1810))
- Translate GitHub.com file URLs into CORS-accessible raw.githubusercontent.com. ([#1810](https://github.com/WordPress/wordpress-playground/pull/1810))

### Tools

- [UX] Stored Playgrounds (no more data loss), multiple Playgrounds, UI WebApp Redesign. ([#1731](https://github.com/WordPress/wordpress-playground/pull/1731))
- [UX] Stored Playgrounds (no more data loss), multiple Playgrounds, UI WebApp Redesign. ([#1731](https://github.com/WordPress/wordpress-playground/pull/1731))

### Documentation

- Docs: Translation i18n messages - JSON files. ([#1807](https://github.com/WordPress/wordpress-playground/pull/1807))
- Docs: Translation i18n messages - JSON files. ([#1807](https://github.com/WordPress/wordpress-playground/pull/1807))

### Website

- Prevent creation of two temporary sites. ([#1817](https://github.com/WordPress/wordpress-playground/pull/1817))
- Stop address bar from adding trailing slash to query params. ([#1820](https://github.com/WordPress/wordpress-playground/pull/1820))
- Prevent creation of two temporary sites. ([#1817](https://github.com/WordPress/wordpress-playground/pull/1817))
- Stop address bar from adding trailing slash to query params. ([#1820](https://github.com/WordPress/wordpress-playground/pull/1820))

### Bug Fixes

- Fix broken Playwright tests. ([#1819](https://github.com/WordPress/wordpress-playground/pull/1819))
- Fix broken Playwright tests. ([#1819](https://github.com/WordPress/wordpress-playground/pull/1819))

### Various

- Add Playwright tests for UI redesign changes. ([#1769](https://github.com/WordPress/wordpress-playground/pull/1769))
- Docs: Contributions to translations. ([#1808](https://github.com/WordPress/wordpress-playground/pull/1808))
- Add Playwright tests for UI redesign changes. ([#1769](https://github.com/WordPress/wordpress-playground/pull/1769))
- Docs: Contributions to translations. ([#1808](https://github.com/WordPress/wordpress-playground/pull/1808))

### Contributors

The following contributors merged PRs in this release:

@adamziel @bgrgicak @brandonpayton @juanmaguitar


## [v0.9.44] (2024-09-24)
## [v0.9.44] (2024-09-24)

### Bug Fixes

- Docs: Fix links intro fr. ([#1795](https://github.com/WordPress/wordpress-playground/pull/1795))
- Docs: Fix links intro fr. ([#1795](https://github.com/WordPress/wordpress-playground/pull/1795))

### Various

- Add missing functions required to succesfully connect with MySQL DB. ([#1752](https://github.com/WordPress/wordpress-playground/pull/1752))
- Add missing functions required to succesfully connect with MySQL DB. ([#1752](https://github.com/WordPress/wordpress-playground/pull/1752))

### Contributors

The following contributors merged PRs in this release:

@jeroenpf @juanmaguitar


## [v0.9.43] (2024-09-23)
## [v0.9.43] (2024-09-23)

### Documentation

Expand Down
49 changes: 23 additions & 26 deletions packages/docs/site/docs/main/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,89 +9,86 @@ All notable changes to this project are documented in this file by a CI job
that runs on every NPM release. The file follows the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
format.

## [v0.9.46] (2024-10-07)
## [v0.9.46] (2024-10-07)

### Enhancements

- Webapp upgrade protocol: Disable HTTP caching and reload other browser tabs to prevent fatal errors after new deployments. ([#1822](https://github.com/WordPress/wordpress-playground/pull/1822))
- Webapp upgrade protocol: Disable HTTP caching and reload other browser tabs to prevent fatal errors after new deployments. ([#1822](https://github.com/WordPress/wordpress-playground/pull/1822))

### Documentation

- Docs: Disable localeDropdown until more pages are translated. ([#1824](https://github.com/WordPress/wordpress-playground/pull/1824))
- Docs: Review playground documentation translations page. ([#1826](https://github.com/WordPress/wordpress-playground/pull/1826))
- Docs: Playground PR previews through GitHub actions. ([#1825](https://github.com/WordPress/wordpress-playground/pull/1825))
- Docs: Disable localeDropdown until more pages are translated. ([#1824](https://github.com/WordPress/wordpress-playground/pull/1824))
- Docs: Review playground documentation translations page. ([#1826](https://github.com/WordPress/wordpress-playground/pull/1826))
- Docs: Playground PR previews through GitHub actions. ([#1825](https://github.com/WordPress/wordpress-playground/pull/1825))

### Website

- Use site slug as a stable scope. ([#1839](https://github.com/WordPress/wordpress-playground/pull/1839))
- Close Playground Manager by default. ([#1831](https://github.com/WordPress/wordpress-playground/pull/1831))
- Fix go-to-site menu items to reveal site view. ([#1833](https://github.com/WordPress/wordpress-playground/pull/1833))
- Use site slug as a stable scope. ([#1839](https://github.com/WordPress/wordpress-playground/pull/1839))
- Close Playground Manager by default. ([#1831](https://github.com/WordPress/wordpress-playground/pull/1831))
- Fix go-to-site menu items to reveal site view. ([#1833](https://github.com/WordPress/wordpress-playground/pull/1833))

### Various

- Add Install instructions to the Playwright README. ([#1837](https://github.com/WordPress/wordpress-playground/pull/1837))
- Resolve end-to-end failures. ([#1844](https://github.com/WordPress/wordpress-playground/pull/1844))
- Add Install instructions to the Playwright README. ([#1837](https://github.com/WordPress/wordpress-playground/pull/1837))
- Resolve end-to-end failures. ([#1844](https://github.com/WordPress/wordpress-playground/pull/1844))

### Contributors

The following contributors merged PRs in this release:

@adamziel @akirk @brandonpayton @juanmaguitar


## [v0.9.45] (2024-09-30)
## [v0.9.45] (2024-09-30)

### Blueprints

- Translate GitHub.com file URLs into CORS-accessible raw.githubusercontent.com. ([#1810](https://github.com/WordPress/wordpress-playground/pull/1810))
- Translate GitHub.com file URLs into CORS-accessible raw.githubusercontent.com. ([#1810](https://github.com/WordPress/wordpress-playground/pull/1810))

### Tools

- [UX] Stored Playgrounds (no more data loss), multiple Playgrounds, UI WebApp Redesign. ([#1731](https://github.com/WordPress/wordpress-playground/pull/1731))
- [UX] Stored Playgrounds (no more data loss), multiple Playgrounds, UI WebApp Redesign. ([#1731](https://github.com/WordPress/wordpress-playground/pull/1731))

### Documentation

- Docs: Translation i18n messages - JSON files. ([#1807](https://github.com/WordPress/wordpress-playground/pull/1807))
- Docs: Translation i18n messages - JSON files. ([#1807](https://github.com/WordPress/wordpress-playground/pull/1807))

### Website

- Prevent creation of two temporary sites. ([#1817](https://github.com/WordPress/wordpress-playground/pull/1817))
- Stop address bar from adding trailing slash to query params. ([#1820](https://github.com/WordPress/wordpress-playground/pull/1820))
- Prevent creation of two temporary sites. ([#1817](https://github.com/WordPress/wordpress-playground/pull/1817))
- Stop address bar from adding trailing slash to query params. ([#1820](https://github.com/WordPress/wordpress-playground/pull/1820))

### Bug Fixes

- Fix broken Playwright tests. ([#1819](https://github.com/WordPress/wordpress-playground/pull/1819))
- Fix broken Playwright tests. ([#1819](https://github.com/WordPress/wordpress-playground/pull/1819))

### Various

- Add Playwright tests for UI redesign changes. ([#1769](https://github.com/WordPress/wordpress-playground/pull/1769))
- Docs: Contributions to translations. ([#1808](https://github.com/WordPress/wordpress-playground/pull/1808))
- Add Playwright tests for UI redesign changes. ([#1769](https://github.com/WordPress/wordpress-playground/pull/1769))
- Docs: Contributions to translations. ([#1808](https://github.com/WordPress/wordpress-playground/pull/1808))

### Contributors

The following contributors merged PRs in this release:

@adamziel @bgrgicak @brandonpayton @juanmaguitar


## [v0.9.44] (2024-09-24)
## [v0.9.44] (2024-09-24)

### Bug Fixes

- Docs: Fix links intro fr. ([#1795](https://github.com/WordPress/wordpress-playground/pull/1795))
- Docs: Fix links intro fr. ([#1795](https://github.com/WordPress/wordpress-playground/pull/1795))

### Various

- Add missing functions required to succesfully connect with MySQL DB. ([#1752](https://github.com/WordPress/wordpress-playground/pull/1752))
- Add missing functions required to succesfully connect with MySQL DB. ([#1752](https://github.com/WordPress/wordpress-playground/pull/1752))

### Contributors

The following contributors merged PRs in this release:

@jeroenpf @juanmaguitar


## [v0.9.43] (2024-09-23)
## [v0.9.43] (2024-09-23)

### Documentation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,8 @@ const schema11 = {
},
password: {
type: 'string',
description:
"The password to log in with. Defaults to 'password'.",
deprecated:
'The password field is deprecated and will be removed in a future version.\nOnly the username field is required for user authentication.',
},
},
required: ['step'],
Expand Down Expand Up @@ -3183,8 +3183,8 @@ const schema22 = {
},
password: {
type: 'string',
description:
"The password to log in with. Defaults to 'password'.",
deprecated:
'The password field is deprecated and will be removed in a future version.\nOnly the username field is required for user authentication.',
},
},
required: ['step'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@
},
"password": {
"type": "string",
"description": "The password to log in with. Defaults to 'password'."
"deprecated": "The password field is deprecated and will be removed in a future version.\nOnly the username field is required for user authentication."
}
},
"required": ["step"]
Expand Down
45 changes: 23 additions & 22 deletions packages/playground/blueprints/src/lib/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const keyedStepHandlers = {
* watching for changes.
*/
import blueprintValidator from '../../public/blueprint-schema-validator';
import { defaultWpCliPath, defaultWpCliResource } from './steps/wp-cli';

export type CompiledStep = (php: UniversalPHP) => Promise<void> | void;

Expand Down Expand Up @@ -147,7 +148,7 @@ export function compileBlueprint(
blueprint.steps!.push({
step: 'login',
...(blueprint.login === true
? { username: 'admin', password: 'password' }
? { username: 'admin' }
: blueprint.login),
});
}
Expand All @@ -170,15 +171,24 @@ export function compileBlueprint(
/**
* Download WP-CLI. {{{
* Hardcoding this in the compile() function is a temporary solution
* to provide the wpCLI step with the wp-cli.phar file it needs. Eventually,
* to provide steps with the wp-cli.phar file it needs. Eventually,
* each Blueprint step may be able to specify any pre-requisite resources.
* Also, wp-cli should only be downloaded if it's not already present.
*
* The enableMultisite step uses wp-cli to convert the site to a multisite.
* The wp-cli step itself depends on WP-CLI.
*/
const wpCliStepIndex =
const indexOfStepThatDependsOnWpCli =
blueprint.steps?.findIndex(
(step) => typeof step === 'object' && step?.step === 'wp-cli'
(step) =>
typeof step === 'object' &&
step?.step &&
['wp-cli', 'enableMultisite'].includes(step.step)
) ?? -1;
if (blueprint?.extraLibraries?.includes('wp-cli') || wpCliStepIndex > -1) {
if (
blueprint?.extraLibraries?.includes('wp-cli') ||
indexOfStepThatDependsOnWpCli !== -1
) {
if (blueprint.phpExtensionBundles.includes('light')) {
blueprint.phpExtensionBundles =
blueprint.phpExtensionBundles.filter(
Expand All @@ -192,21 +202,8 @@ export function compileBlueprint(
}
const wpCliInstallStep: WriteFileStep<FileReference> = {
step: 'writeFile',
data: {
resource: 'url',
/**
* Use compression for downloading the wp-cli.phar file.
* The official release, hosted at raw.githubusercontent.com, is ~7MB
* and the transfer is uncompressed. playground.wordpress.net supports
* transfer compression and only transmits ~1.4MB.
*
* @TODO: minify the wp-cli.phar file. It can be as small as 1MB when all the
* whitespaces and are removed, and even 500KB when libraries
* like the JavaScript parser or Composer are removed.
*/
url: 'https://playground.wordpress.net/wp-cli.phar',
},
path: '/tmp/wp-cli.phar',
data: defaultWpCliResource,
path: defaultWpCliPath,
};
/**
* If the blueprint does not have a wp-cli step,
Expand All @@ -216,10 +213,14 @@ export function compileBlueprint(
* If the blueprint has wp-cli steps,
* we need to install wp-cli before running these steps.
*/
if (wpCliStepIndex === -1) {
if (indexOfStepThatDependsOnWpCli === -1) {
blueprint.steps?.push(wpCliInstallStep);
} else {
blueprint.steps?.splice(wpCliStepIndex, 0, wpCliInstallStep);
blueprint.steps?.splice(
indexOfStepThatDependsOnWpCli,
0,
wpCliInstallStep
);
}
}

Expand Down
Loading
Loading