Skip to content

Add warning notice to AMP settings screen when not using HTTPS#3219

Merged
westonruter merged 3 commits intodevelopfrom
add/2006-add-https-warning
Sep 11, 2019
Merged

Add warning notice to AMP settings screen when not using HTTPS#3219
westonruter merged 3 commits intodevelopfrom
add/2006-add-https-warning

Conversation

@schlessera
Copy link
Copy Markdown
Collaborator

This PR adds a notice to the AMP Settings screen to warn users when their site is not being served over HTTPS.

To check this, it doesn't solely rely on is_ssl() but also checks the url and wpurl options, similar to what Site Health does, to make sure we get a value for the frontend as well.

The warning links to the official HTTPS support page from WP: https://wordpress.org/support/article/why-should-i-use-https/

Image 2019-09-10 at 12 01 53 PM

Fixes #2006

@schlessera schlessera added Enhancement New feature or improvement of an existing one [Size] S labels Sep 10, 2019
@googlebot googlebot added the cla: yes Signed the Google CLA label Sep 10, 2019
@schlessera
Copy link
Copy Markdown
Collaborator Author

While writing this PR I noticed that there is some escaping missing in this class and opened a new issue for this: #3217

@westonruter westonruter added this to the v1.3 milestone Sep 10, 2019
@westonruter westonruter merged commit f869b45 into develop Sep 11, 2019
@westonruter westonruter deleted the add/2006-add-https-warning branch September 11, 2019 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Signed the Google CLA Enhancement New feature or improvement of an existing one

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add warning when a site is not served via HTTPS

4 participants