Expose loopback request test failure when "Failed to fetch URL to validate" #4978
Labels
Enhancement
New feature or improvement of an existing one
P2
Low priority
Validation
WS:Core
Work stream for Plugin core
Feature description
As seen in this support topic, when a site is unable to perform loopback requests, this is not made immediately clear to the user. The error message does tell the user to verify the site can perform loopback requests:
But we could be something more proactive by actually invoking
\WP_Site_Health::can_perform_loopback()
(e.g. via Ajax) and tell them right there it is failing.If the issue is indeed with loopback requests, then we should provide some more guidance about how to resolve the issue, not only for the AMP plugin to work properly but also for this critical health of a site.
This is related to #3789, which is to proactively warn when loopback requests are failing.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: