Skip to content
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

Add blueprint #60

Merged
merged 2 commits into from
May 5, 2024
Merged
Changes from all commits
Commits
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
22 changes: 22 additions & 0 deletions .wordpress-org/blueprints/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "/wp-admin/post.php?post=5&action=edit",
"steps": [
{
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "wordpress.org/plugins",
"slug": "richtext-extension"
}
},
{
"step": "runPHP",
"code": "<?php\ninclude 'wordpress/wp-load.php';\nwp_insert_post(array(\n'import_id' => 5,\n'post_title' => 'RichText Extension',\n'post_content' => '<!-- wp:paragraph -->\n<p>Lorem ipsum dolor sit <span class=\"rtex-highlighter-0\">amet</span>, consectetur adipiscing elit, sed do eiusmod tempor <span class=\"rtex-highlighter-1\">incididunt</span> ut labore et dolore magna <span class=\"rtex-highlighter-2\">aliqua</span>. Ut enim ad minim veniam, quis nostrud exercitation <span class=\"rtex-highlighter-3\">ullamco</span> laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in <span class=\"rtex-font-size-0\">reprehenderit</span> in voluptate velit esse <span class=\"rtex-font-size-1\">cillum</span> dolore eu fugiat nulla <span class=\"rtex-font-size-2\">pariatur</span>. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt <span class=\"rtex-font-size-3\">mollit</span> anim id est laborum.</p>\n<!-- /wp:paragraph -->',\n'post_status' => 'publish',\n'post_author' => 1\n));"
}
]
}