Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update blueprint.json with new steps
- Loading branch information
1 parent
7a219b4
commit ae2e07d
Showing
2 changed files
with
148 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
{ | ||
"landingPage": "/wp-admin/post.php?post=4&action=edit", | ||
"steps": [ | ||
{ | ||
"step": "login", | ||
"username": "admin", | ||
"password": "password" | ||
}, | ||
{ | ||
"step": "installPlugin", | ||
"pluginZipFile": { | ||
"resource": "url", | ||
"url": "https://raw.githubusercontent.com/WordPress/block-development-examples/deploy/zips/block-toolbar-ab967f.zip" | ||
} | ||
}, | ||
{ | ||
"step": "runPHP", | ||
"code": "<?php require '/wordpress/wp-load.php'; wp_insert_post( array('post_title' => 'Demo Block Toolbar','post_content' => '<!-- wp:paragraph --><p>Select the block to see the custom Block Toolbar</p><!-- /wp:paragraph --><!-- wp:block-development-examples/block-toolbar-ab967f --><p class='wp-block-block-development-examples-block-toolbar-ab967f block-toolbar-ab967f-align-none'>Select Me!</p><!-- /wp:block-development-examples/block-toolbar-ab967f -->', 'post_status' => 'publish', 'post_author' => 1 ) );" | ||
} | ||
] | ||
} | ||
"landingPage": "/wp-admin/post.php?post=5&action=edit", | ||
"steps": [ | ||
{ | ||
"step": "installPlugin", | ||
"pluginZipFile": { | ||
"resource": "url", | ||
"url": "https://raw.githubusercontent.com/WordPress/block-development-examples/deploy/zips/settings-sidebar-82c525.zip" | ||
} | ||
}, | ||
{ | ||
"step": "login", | ||
"username": "admin", | ||
"password": "password" | ||
}, | ||
{ | ||
"step": "runPHP", | ||
"code": "<?php require '/wordpress/wp-load.php'; $wpdb->query('delete from wp_posts');" | ||
}, | ||
{ | ||
"step": "importFile", | ||
"file": { | ||
"resource": "url", | ||
"url": "https://raw.githubusercontent.com/WordPress/block-development-examples/trunk/plugins/settings-sidebar-82c525/_playground/export.xml" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. --> | ||
<!-- It contains information about your site's posts, pages, comments, categories, and other content. --> | ||
<!-- You may use this file to transfer that content from one site to another. --> | ||
<!-- This file is not intended to serve as a complete backup of your site. --> | ||
|
||
<!-- To import this information into a WordPress site follow these steps: --> | ||
<!-- 1. Log in to that site as an administrator. --> | ||
<!-- 2. Go to Tools: Import in the WordPress admin panel. --> | ||
<!-- 3. Install the "WordPress" importer from the list. --> | ||
<!-- 4. Activate & Run Importer. --> | ||
<!-- 5. Upload this file using the form provided on that page. --> | ||
<!-- 6. You will first be asked to map the authors in this export file to users --> | ||
<!-- on the site. For each author, you may choose to map to an --> | ||
<!-- existing user on the site or to create a new user. --> | ||
<!-- 7. WordPress will then import each of the posts, pages, comments, categories, etc. --> | ||
<!-- contained in this file into your site. --> | ||
|
||
<!-- generator="WordPress/6.4.2" created="2023-12-18 13:22" --> | ||
<rss version="2.0" | ||
xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/" | ||
xmlns:content="http://purl.org/rss/1.0/modules/content/" | ||
xmlns:wfw="http://wellformedweb.org/CommentAPI/" | ||
xmlns:dc="http://purl.org/dc/elements/1.1/" | ||
xmlns:wp="http://wordpress.org/export/1.2/" | ||
> | ||
|
||
<channel> | ||
<title>My WordPress Website</title> | ||
<link>https://playground.wordpress.net/scope:0.1123243878613369</link> | ||
<description></description> | ||
<pubDate>Mon, 18 Dec 2023 13:22:50 +0000</pubDate> | ||
<language>en-US</language> | ||
<wp:wxr_version>1.2</wp:wxr_version> | ||
<wp:base_site_url>https://playground.wordpress.net/scope:0.1123243878613369</wp:base_site_url> | ||
<wp:base_blog_url>https://playground.wordpress.net/scope:0.1123243878613369</wp:base_blog_url> | ||
|
||
<wp:author><wp:author_id>1</wp:author_id><wp:author_login><![CDATA[admin]]></wp:author_login><wp:author_email><![CDATA[admin@localhost.com]]></wp:author_email><wp:author_display_name><![CDATA[admin]]></wp:author_display_name><wp:author_first_name><![CDATA[]]></wp:author_first_name><wp:author_last_name><![CDATA[]]></wp:author_last_name></wp:author> | ||
|
||
|
||
<generator>https://wordpress.org/?v=6.4.2</generator> | ||
|
||
<item> | ||
<title><![CDATA[Hello world!]]></title> | ||
<link>https://playground.wordpress.net/scope:0.1123243878613369/?p=1</link> | ||
<pubDate>Mon, 18 Dec 2023 08:09:27 +0000</pubDate> | ||
<dc:creator><![CDATA[admin]]></dc:creator> | ||
<guid isPermaLink="false">http://127.0.0.1:8000/?p=1</guid> | ||
<description></description> | ||
<content:encoded><![CDATA[<!-- wp:paragraph --> | ||
<p>Welcome to WordPress. This is your first post. Edit or delete it, then start writing!</p> | ||
<!-- /wp:paragraph -->]]></content:encoded> | ||
<excerpt:encoded><![CDATA[]]></excerpt:encoded> | ||
<wp:post_id>1</wp:post_id> | ||
<wp:post_date><![CDATA[2023-12-18 08:09:27]]></wp:post_date> | ||
<wp:post_date_gmt><![CDATA[2023-12-18 08:09:27]]></wp:post_date_gmt> | ||
<wp:post_modified><![CDATA[2023-12-18 08:09:27]]></wp:post_modified> | ||
<wp:post_modified_gmt><![CDATA[2023-12-18 08:09:27]]></wp:post_modified_gmt> | ||
<wp:comment_status><![CDATA[open]]></wp:comment_status> | ||
<wp:ping_status><![CDATA[open]]></wp:ping_status> | ||
<wp:post_name><![CDATA[hello-world]]></wp:post_name> | ||
<wp:status><![CDATA[publish]]></wp:status> | ||
<wp:post_parent>0</wp:post_parent> | ||
<wp:menu_order>0</wp:menu_order> | ||
<wp:post_type><![CDATA[post]]></wp:post_type> | ||
<wp:post_password><![CDATA[]]></wp:post_password> | ||
<wp:is_sticky>0</wp:is_sticky> | ||
<category domain="category" nicename="uncategorized"><![CDATA[Uncategorized]]></category> | ||
<wp:comment> | ||
<wp:comment_id>1</wp:comment_id> | ||
<wp:comment_author><![CDATA[A WordPress Commenter]]></wp:comment_author> | ||
<wp:comment_author_email><![CDATA[wapuu@wordpress.example]]></wp:comment_author_email> | ||
<wp:comment_author_url>https://wordpress.org/</wp:comment_author_url> | ||
<wp:comment_author_IP><![CDATA[]]></wp:comment_author_IP> | ||
<wp:comment_date><![CDATA[2023-12-18 08:09:27]]></wp:comment_date> | ||
<wp:comment_date_gmt><![CDATA[2023-12-18 08:09:27]]></wp:comment_date_gmt> | ||
<wp:comment_content><![CDATA[Hi, this is a comment. | ||
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard. | ||
Commenter avatars come from <a href="https://en.gravatar.com/">Gravatar</a>.]]></wp:comment_content> | ||
<wp:comment_approved><![CDATA[1]]></wp:comment_approved> | ||
<wp:comment_type><![CDATA[comment]]></wp:comment_type> | ||
<wp:comment_parent>0</wp:comment_parent> | ||
<wp:comment_user_id>0</wp:comment_user_id> | ||
</wp:comment> | ||
</item> | ||
<item> | ||
<title><![CDATA[Demo Block Toolbar]]></title> | ||
<link>https://playground.wordpress.net/scope:0.1123243878613369/?p=5</link> | ||
<pubDate>Mon, 18 Dec 2023 13:22:30 +0000</pubDate> | ||
<dc:creator><![CDATA[admin]]></dc:creator> | ||
<guid isPermaLink="false">https://playground.wordpress.net/scope:0.1123243878613369/?p=5</guid> | ||
<description></description> | ||
<content:encoded><![CDATA[<!-- wp:paragraph --><p>Select the block to see the custom Block Toolbar</p><!-- /wp:paragraph --><!-- wp:block-development-examples/block-toolbar-ab967f --><p class='wp-block-block-development-examples-block-toolbar-ab967f block-toolbar-ab967f-align-none'>Select Me!</p><!-- /wp:block-development-examples/block-toolbar-ab967f -->]]></content:encoded> | ||
<excerpt:encoded><![CDATA[]]></excerpt:encoded> | ||
<wp:post_id>5</wp:post_id> | ||
<wp:post_date><![CDATA[2023-12-18 13:22:30]]></wp:post_date> | ||
<wp:post_date_gmt><![CDATA[2023-12-18 13:22:30]]></wp:post_date_gmt> | ||
<wp:post_modified><![CDATA[2023-12-18 13:22:30]]></wp:post_modified> | ||
<wp:post_modified_gmt><![CDATA[2023-12-18 13:22:30]]></wp:post_modified_gmt> | ||
<wp:comment_status><![CDATA[open]]></wp:comment_status> | ||
<wp:ping_status><![CDATA[open]]></wp:ping_status> | ||
<wp:post_name><![CDATA[demo-settings-sidebar]]></wp:post_name> | ||
<wp:status><![CDATA[publish]]></wp:status> | ||
<wp:post_parent>0</wp:post_parent> | ||
<wp:menu_order>0</wp:menu_order> | ||
<wp:post_type><![CDATA[post]]></wp:post_type> | ||
<wp:post_password><![CDATA[]]></wp:post_password> | ||
<wp:is_sticky>0</wp:is_sticky> | ||
<category domain="category" nicename="uncategorized"><![CDATA[Uncategorized]]></category> | ||
<wp:postmeta> | ||
<wp:meta_key><![CDATA[_pingme]]></wp:meta_key> | ||
<wp:meta_value><![CDATA[1]]></wp:meta_value> | ||
</wp:postmeta> | ||
<wp:postmeta> | ||
<wp:meta_key><![CDATA[_encloseme]]></wp:meta_key> | ||
<wp:meta_value><![CDATA[1]]></wp:meta_value> | ||
</wp:postmeta> | ||
</item> | ||
</channel> | ||
</rss> | ||
|