Use working blueprint example for WordPress Playground multisite
This commit is contained in:
@@ -17,10 +17,7 @@ The easiest way to test our plugin with WordPress Playground is to use the onlin
|
|||||||
|
|
||||||
1. Single site testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/blueprint.json&_t=4)
|
1. Single site testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/blueprint.json&_t=4)
|
||||||
|
|
||||||
2. Multisite testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/multisite-blueprint.json&_t=14)
|
2. Multisite testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/multisite-blueprint.json&_t=15)
|
||||||
- After WordPress loads, go to Settings > General
|
|
||||||
- Scroll down and check "Allow network access" and "Create a multisite network"
|
|
||||||
- Click "Apply Settings & Reset Playground"
|
|
||||||
|
|
||||||
These links will automatically set up WordPress with our plugin installed and activated.
|
These links will automatically set up WordPress with our plugin installed and activated.
|
||||||
|
|
||||||
@@ -35,7 +32,7 @@ To run tests with WordPress Playground:
|
|||||||
|
|
||||||
1. Open the appropriate WordPress Playground link:
|
1. Open the appropriate WordPress Playground link:
|
||||||
- [Single site](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/blueprint.json&_t=4)
|
- [Single site](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/blueprint.json&_t=4)
|
||||||
- [Multisite](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/multisite-blueprint.json&_t=14) (requires manual multisite activation)
|
- [Multisite](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/multisite-blueprint.json&_t=15)
|
||||||
|
|
||||||
2. Test the plugin manually in the browser
|
2. Test the plugin manually in the browser
|
||||||
|
|
||||||
|
|||||||
@@ -106,10 +106,7 @@ The easiest way to test our plugin with WordPress Playground is to use the onlin
|
|||||||
|
|
||||||
1. Single site testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/blueprint.json&_t=4)
|
1. Single site testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/blueprint.json&_t=4)
|
||||||
|
|
||||||
2. Multisite testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/multisite-blueprint.json&_t=14)
|
2. Multisite testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/multisite-blueprint.json&_t=15)
|
||||||
- After WordPress loads, go to Settings > General
|
|
||||||
- Scroll down and check "Allow network access" and "Create a multisite network"
|
|
||||||
- Click "Apply Settings & Reset Playground"
|
|
||||||
|
|
||||||
These links will automatically set up WordPress with a sample plugin installed and activated.
|
These links will automatically set up WordPress with a sample plugin installed and activated.
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,18 @@
|
|||||||
{
|
{
|
||||||
"landingPage": "/wp-admin/options-general.php",
|
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
|
||||||
|
"landingPage": "/wp-admin/network/",
|
||||||
"login": true,
|
"login": true,
|
||||||
"preferredVersions": {
|
"features": {
|
||||||
"php": "8.0",
|
|
||||||
"wp": "latest"
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"multisite": true,
|
|
||||||
"networking": true
|
"networking": true
|
||||||
},
|
},
|
||||||
"steps": [
|
"steps": [
|
||||||
|
{
|
||||||
|
"step": "enableMultisite"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"step": "wp-cli",
|
||||||
|
"command": "wp site create --slug=testsite"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"step": "installPlugin",
|
"step": "installPlugin",
|
||||||
"pluginData": {
|
"pluginData": {
|
||||||
|
|||||||
@@ -20,6 +20,6 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<iframe src="https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/multisite-blueprint.json&_t=14"></iframe>
|
<iframe src="https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/feature/testing-framework/playground/multisite-blueprint.json&_t=15"></iframe>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user