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

WordPress Trac noreply at wordpress.org
Mon Sep 23 02:57:21 UTC 2019


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

Comment (by Clorith):

 [attachment:"48105.patch"] is a first iteration of the above, it retains
 backwards compatibility for async tests created with `admin-ajax.php` in
 mind, but switches to using a REST endpoint if `has_rest` is defined and
 set to `true`.

 It also adds failure handling to the async tests, so that if a test fails,
 it shouldn't break the JS from continuing with the next available check.

 There's still some cleaning needed before this is ready (removing
 references to the old ajax hooks)

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


More information about the wp-trac mailing list