-
Notifications
You must be signed in to change notification settings - Fork 382
Description
Breaking out from #1007 which focused specifically on using WP-CLI to do validation of an entire site.
Just as a user can run wp amp validate-site via WP-CLI to do bulk validation on the URLs of a site to check compatibility, there should also be a way to initiate this same validation via the admin.
As noted in #1007 (comment):
Once we have the WP-CLI command in place, then we can look at how to present that same information in the admin. We'll also then need to figure out a good way to use
admin-ajaxto reliably make requests to batch validate URLs without timing-out. But these things would essentially be GUI improvements over the raw work performed by WP-CLI, so good to focus on that first. On that note, most of the WP-CLI commands should be invoking logic inAMP_Validation_Utilswhich can be re-shared with the admin integration.
See also #1007 (comment) and other comments on that issue.
Low Priority: Also related to #1273 as it would be helpful to automatically report which templates are best suited for serving as AMP based on validation results.