[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
Sat Jan 2 20:11:46 UTC 2021


#52112: get_test_rest_availability() test should point to diffrent endpoint (where
no current_user_can() check is made)
--------------------------+------------------------------
 Reporter:  szaqal21      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Site Health   |     Version:  5.6
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by TimothyBlynJacobs):

 The check including `context` is intentional because it allows us to
 determine whether Gutenberg will be able to function properly. In other
 words it tests that authenticated requests to the REST API work, and that
 query parameters are properly parsed and `context` evaluated.

 This is probably one of the tests that should only be done in a
 [https://core.trac.wordpress.org/ticket/52097#comment:1 "live" mode] that
 @clorith mentions.

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


More information about the wp-trac mailing list