[wp-trac] [WordPress Trac] #52112: get_test_rest_availability() test should point to diffrent endpoint (where no current_user_can() check is made)

WordPress Trac noreply at wordpress.org
Thu May 20 11:08:30 UTC 2021


#52112: get_test_rest_availability() test should point to diffrent endpoint (where
no current_user_can() check is made)
--------------------------------------+----------------------
 Reporter:  szaqal21                  |       Owner:  Clorith
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.8
Component:  Site Health               |     Version:  5.6
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+----------------------
Changes (by Clorith):

 * owner:  (none) => Clorith
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50939" 50939]:
 {{{
 #!CommitTicketReference repository="" revision="50939"
 Site Health: Skip REST tests during scheduled events.

 This change fixes a false positive that would appear during scheduled
 events, by only running the REST test when a user visits the Site Health
 page, meaning an active session is available.

 The test checking if the REST API is available, includes a parameter for
 `context=edit` to make sure the block editor can function properly. This
 means a user session with editor capabilities is required for the test to
 pass, which is not the case during a scheduled event.

 Props szaqal21, TimothyBlynJacobs, hermpheus.
 Fixes #52112.
 }}}

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


More information about the wp-trac mailing list