[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
Wed May 19 20:25:15 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: 5.8
Component: Site Health | Version: 5.6
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses:
--------------------------------------+---------------------
Comment (by hermpheus):
I can see an argument for changing the test context to ensure that the
REST API works for non-authenticated users, but I also see an argument
that it is more important to test that authenticated REST calls work, as
is necessary for Gutenberg.
The patch attached above implements the `skip_cron` fix @Clorith outlines
above to fix the false positive.
Thanks all.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52112#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list