[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:52:16 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       |   Keywords:
  Focuses:  rest-api     |
-------------------------+----------------------------
 Currently various tests are ran asyncronously with a call to `admin-
 ajax.php`, which has some limitations, specifically in core filters not
 being loaded when using old style ajax calls (see the loopback to `wp-
 admin/site-health.php?health-check-test-wp_version_check` to verify the
 existence of the `wp_version_check` filter).

 Moving things out into REST API endpoints would provide more flexibility,
 and better handling of permission checks as well. It also means that any
 code extending tests and adding their own async checks would have a much
 ore robust platform to test against, if they choose to utilize it.

 There's some backwards compatibility considerations to be kept in mind,
 the current implementation of calling an admin-ajax call needs to be
 maintained, likely by introducing a `has_rest => true` flag to the async
 test registration to decide where to forward the call.

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


More information about the wp-trac mailing list