[wp-trac] [WordPress Trac] #48105: Move Site Health async checks to a REST API endpoint

WordPress Trac noreply at wordpress.org
Sun Dec 15 14:12:32 UTC 2019


#48105: Move Site Health async checks to a REST API endpoint
-------------------------+-----------------------
 Reporter:  Clorith      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  5.4
Component:  Site Health  |     Version:  5.2
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  rest-api
-------------------------+-----------------------
Changes (by Clorith):

 * keywords:   => has-patch
 * milestone:  Future Release => 5.4


Comment:

 [attachment:"48105.2.patch"] provides REST endpoints for the previous ajax
 calls for the core provided asynchronous Site Health tests.

 It also removed the now unused ajax handlers, and provides deprecation
 notices, and `_doing_it_wrong` calls to the callback functions from those
 ajax calls. I don't believe anyone is calling those functions directly,
 but better safe than sorry, as the saying goes.

 It also improves on the failure handling for those tests, if a test fails,
 a notice will now be displayed in the recommended section, the badge has
 the label `Unavailable`, with a red outline, as opposed to the normal blue
 used by core for all other tests.

 The URL invoked to perform the test is provided, and either the string `No
 details available` (as a fallback), or the error returned by the site.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48105#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list