-
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 branch 'develop' of github.com:10up/insecure-content-warning in…
…to develop
- Loading branch information
Showing
26 changed files
with
9,306 additions
and
4,280 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
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
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 @@ | ||
name: PHP Compatibility | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- trunk | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
php-compatibility: | ||
name: PHP minimum 7.4 | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set PHP version | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
tools: composer:v2 | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
run: composer install | ||
|
||
- name: Run PHP Compatibility on all files. | ||
run: vendor/bin/phpcs includes --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.4- | ||
|
||
- name: Run PHP Compatibility on main file. | ||
run: vendor/bin/phpcs insecure-content-warning.php --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 5.6- |
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,32 @@ | ||
name: 'Repo Automator' | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
push: | ||
branches: | ||
- develop | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
- converted_to_draft | ||
- ready_for_review | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
Validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: 10up/action-repo-automator@trunk | ||
with: | ||
fail-label: needs:feedback | ||
pass-label: needs:code-review | ||
conflict-label: needs:refresh | ||
sync-pr-branch: true | ||
reviewers: | | ||
team:open-source-practice | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 was deleted.
Oops, something went wrong.
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> |
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
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,30 @@ | ||
{ | ||
"name": "10up/insecure-content-warning", | ||
"description": "Prevent editors from adding insecure content in the editor.", | ||
"type": "wordpress-plugin", | ||
"license": "GPL-2.0-or-later", | ||
"authors": [ | ||
{ | ||
"name": "10up", | ||
"email": "[email protected]", | ||
"homepage": "https://10up.com/", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.4" | ||
}, | ||
"require-dev": { | ||
"10up/phpcs-composer": "dev-master" | ||
}, | ||
"scripts": { | ||
"lint": "./vendor/bin/phpcs . -p -s", | ||
"lint-fix": "./vendor/bin/phpcbf .", | ||
"phpcs:compat": "./vendor/bin/phpcs includes -p --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.4- && ./vendor/bin/phpcs insecure-content-warning.php -p --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 5.6-" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
} | ||
} |
Oops, something went wrong.