Proactively warn when loopback requests are not working #3789
Labels
Blocked
Enhancement
New feature or improvement of an existing one
Groomed
P2
Low priority
WS:Core
Work stream for Plugin core
Feature description
When a site is unable to perform loopback requests, various parts of WordPress break including scheduled events and the theme/plugin editor. Something else that breaks is the AMP plugin is unable to perform validation requests. At the moment when validation requests fail, a cryptic message can be displayed including:
We need to be more proactive than showing this message when trying to validate. The Site Health functionality includes a test for this:
Similar to how it proactively warns about the lack of HTTPS (#3219) and external object cache (#1050), we need to do the same for loopback requests. The first time that the AMP plugin is activated, this check should be done and if failed a warning should be shown on the plugin activation screen. Otherwise, or in addition, whenever landing on the AMP settings screen the test for loopback requests (and perhaps for HTTPS) should both be done and show the results.
When validation requests fail due to loopback requests failing, then we should explicitly mention this rather than saying something general about timeouts.
Relates to #1371 and #2199.
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: