[wp-trac] [WordPress Trac] #57752: Improve rest_(allowed|exposed)_cors_headers filters
WordPress Trac
noreply at wordpress.org
Wed Jun 28 17:07:50 UTC 2023
#57752: Improve rest_(allowed|exposed)_cors_headers filters
--------------------------------------+---------------------------
Reporter: bor0 | Owner: spacedmonkey
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.4
Component: REST API | Version: 6.2
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+---------------------------
Changes (by kadamwhite):
* keywords: has-patch needs-testing has-unit-tests => has-patch has-unit-
tests
* owner: rachelbaker => spacedmonkey
* focuses: => rest-api
* status: accepted => assigned
Comment:
https://github.com/WordPress/wordpress-develop/pull/4740 now contains a
version of @bor0's patch with unit tests, which assert the second argument
is present, is a request object, and matches the unique dispatched route.
The tests were pushed first to validate in CI that the tests fail without
the patch, then pass with it.
I'm comfortable moving forward with this one, though I think we're
''just'' missing the 6.3 cutoff.
@spacedmonkey assigning to you to take forward, if that's alright.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57752#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list