[wp-trac] [WordPress Trac] #45753: REST API: Allow header not set when OPTIONS request is made to a route that contains URL params

WordPress Trac noreply at wordpress.org
Tue Mar 19 01:17:08 UTC 2019


#45753: REST API: Allow header not set when OPTIONS request is made to a route that
contains URL params
--------------------------+-----------------------
 Reporter:  noisysocks    |       Owner:  killua99
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  5.2
Component:  REST API      |     Version:  5.0.2
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------
Changes (by kadamwhite):

 * Attachment "45753.3.diff" added.

 Add test assertion for logged-in user, mirror test to attachments
 controller, and run filters in tests instead of causing side-effects
 within rest_handle_options_request.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45753>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list