[wp-trac] [WordPress Trac] #51547: Error checking in site health async cron tasks
WordPress Trac
noreply at wordpress.org
Mon Oct 19 17:20:19 UTC 2020
#51547: Error checking in site health async cron tasks
--------------------------+---------------------
Reporter: dd32 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.6
Component: Site Health | Version: 5.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+---------------------
Changes (by Clorith):
* keywords: needs-patch => has-patch
Comment:
As there's no internal way to authenticate against the REST endpoint,
[attachment:"51547.patch"] introduces a direct callback route that async
tests can register if they want or can.
It also hardens the check which initially alerted us to the problems here
by checking if the response is a WP error, and that it gets a non-error
response code from the request as well.
This will need a dev note, but it goes along with the REST endpoint dev
note in general.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51547#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list