-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from 10up/feature/plugin-preview
Add support for the WordPress.org plugin preview
- Loading branch information
Showing
3 changed files
with
131 additions
and
3 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
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,36 @@ | ||
{ | ||
"$schema": "https://playground.wordpress.net/blueprint-schema.json", | ||
"landingPage": "\/wp-admin\/post.php?post=9&action=edit", | ||
"preferredVersions": { | ||
"php": "7.4", | ||
"wp": "latest" | ||
}, | ||
"phpExtensionBundles": ["kitchen-sink"], | ||
"features": { | ||
"networking": true | ||
}, | ||
"steps": [ | ||
{ | ||
"step": "login", | ||
"username": "admin", | ||
"password": "password" | ||
}, | ||
{ | ||
"step": "installPlugin", | ||
"pluginZipFile": { | ||
"resource": "wordpress.org\/plugins", | ||
"slug": "insecure-content-warning" | ||
}, | ||
"options": { | ||
"activate": true | ||
} | ||
}, | ||
{ | ||
"step": "importFile", | ||
"file": { | ||
"resource": "url", | ||
"url": "https:\/\/raw.githubusercontent.com\/10up\/insecure-content-warning\/6102837ca26c1d0b05ba15ef9d1b7d63f5201ff9\/.wordpress-org/blueprints\/demo-data.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,79 @@ | ||
<?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-19 20:50" --> | ||
<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/</link> | ||
<description></description> | ||
<pubDate>Tue, 19 Dec 2023 20:50:47 +0000</pubDate> | ||
<language>en-US</language> | ||
<wp:wxr_version>1.2</wp:wxr_version> | ||
<wp:base_site_url>https://playground.wordpress.net/</wp:base_site_url> | ||
<wp:base_blog_url>https://playground.wordpress.net/</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[[email protected]]]></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[Insecure content demo]]></title> | ||
<link>https://playground.wordpress.net/?p=9</link> | ||
<pubDate></pubDate> | ||
<dc:creator><![CDATA[admin]]></dc:creator> | ||
<guid isPermaLink="false">https://playground.wordpress.net/?p=9</guid> | ||
<description></description> | ||
<content:encoded><![CDATA[<!-- wp:paragraph --> | ||
<p>This post has an image that is using an insecure URL.</p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:paragraph --> | ||
<p>Try publishing this post to see this image get flagged.</p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:image {"sizeSlug":"large"} --> | ||
<figure class="wp-block-image size-large"><img src="http://upload.wikimedia.org/wikipedia/commons/7/7a/Basketball.png" alt=""/></figure> | ||
<!-- /wp:image -->]]></content:encoded> | ||
<excerpt:encoded><![CDATA[]]></excerpt:encoded> | ||
<wp:post_id>9</wp:post_id> | ||
<wp:post_date><![CDATA[2023-12-19 20:50:38]]></wp:post_date> | ||
<wp:post_date_gmt><![CDATA[0000-00-00 00:00:00]]></wp:post_date_gmt> | ||
<wp:post_modified><![CDATA[2023-12-19 20:50:38]]></wp:post_modified> | ||
<wp:post_modified_gmt><![CDATA[2023-12-19 20:50:38]]></wp:post_modified_gmt> | ||
<wp:comment_status><![CDATA[open]]></wp:comment_status> | ||
<wp:ping_status><![CDATA[open]]></wp:ping_status> | ||
<wp:post_name><![CDATA[]]></wp:post_name> | ||
<wp:status><![CDATA[draft]]></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> | ||
</item> | ||
</channel> | ||
</rss> |