[wp-trac] [WordPress Trac] #51547: Error checking in site health async cron tasks

WordPress Trac noreply at wordpress.org
Fri Oct 16 06:52:53 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:  needs-patch   |     Focuses:
--------------------------+---------------------
Changes (by Clorith):

 * milestone:  Awaiting Review => 5.6


Comment:

 Good catch, not sure why I overlooked this. You are correct that it is
 because the rest endpoint isn't set in this scenario, but it would also
 fail because of the lack of auth.

 Creating a cron-token and setting it as the nonce value would probably be
 needed here to bypass the need for an active authenticated user session,
 but shouldn't be a difficult thing to get added.

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


More information about the wp-trac mailing list