Skip to content

Commit

Permalink
Reindex and reformat Blueprints
Browse files Browse the repository at this point in the history
  • Loading branch information
deployment_bot committed May 15, 2024
1 parent 69f6270 commit c3c0cdc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
1 change: 1 addition & 0 deletions GALLERY.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Here's the list of all the community Blueprints submitted to this repository. Se
| Install WordPress language packs | Installs and activates the latest WordPress Japanese translation pack from https://translate.wordpress.org/. | [@adamziel](https://github.com/adamziel) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/translations/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/translations/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/translations/blueprint.json) |
| Install plugin from a gist | Install and activate a WordPress plugin from a .php file stored in a gist. | [@zieladam](https://github.com/zieladam) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/install-plugin-from-gist/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/install-plugin-from-gist/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/install-plugin-from-gist/blueprint.json) |
| Latest Gutenberg plugin | A preview of the latest version of the Gutenberg plugin. | [@zieladam](https://github.com/zieladam) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/latest-gutenberg/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/latest-gutenberg/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/latest-gutenberg/blueprint.json) |
| Login as an editor | Test WordPress functionality as an editor rather than an administrator. | [@bacoords](https://github.com/bacoords) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/login-as-editor/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/login-as-editor/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/login-as-editor/blueprint.json) |
| Theme Tester | Blueprint example to add content and plugins to explore a theme | [@bph](https://github.com/bph) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/theme-a11y-test/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/theme-a11y-test/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/theme-a11y-test/blueprint.json) |
| Use wp-cli command to add posts | Blueprint example to add posts via a wp-cli command. | [@bph](https://github.com/bph) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/posts-via-wp-cli/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/posts-via-wp-cli/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/posts-via-wp-cli/blueprint.json) |
| Use wp-cli to add a post with image | Use wp-cli to create a post from text file with block markup and a featured image | [@bph](https://github.com/bph) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/wpcli-post-with-image/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/blueprint.json) |
Expand Down
20 changes: 10 additions & 10 deletions blueprints/login-as-editor/blueprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
},
"landingPage": "/wp-admin/",
"steps": [
{
"step": "runPHP",
"code": "<?php require '/wordpress/wp-load.php'; $user_id = wp_create_user('myuser', 'mypass', 'myuser@localhost'); (new WP_User($user_id))->set_role('editor');"
},
{
"step": "login",
"username": "myuser",
"password": "mypass"
}
{
"step": "runPHP",
"code": "<?php require '/wordpress/wp-load.php'; $user_id = wp_create_user('myuser', 'mypass', 'myuser@localhost'); (new WP_User($user_id))->set_role('editor');"
},
{
"step": "login",
"username": "myuser",
"password": "mypass"
}
]
}
}
9 changes: 9 additions & 0 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@
"plugins"
]
},
"blueprints/login-as-editor/blueprint.json": {
"title": "Login as an editor",
"description": "Test WordPress functionality as an editor rather than an administrator.",
"author": "bacoords",
"categories": [
"User",
"Role"
]
},
"blueprints/theme-a11y-test/blueprint.json": {
"title": "Theme Tester",
"description": "Blueprint example to add content and plugins to explore a theme",
Expand Down

0 comments on commit c3c0cdc

Please sign in to comment.