[wp-trac] [WordPress Trac] #57752: Improve rest_(allowed|exposed)_cors_headers filters

WordPress Trac noreply at wordpress.org
Wed Jun 28 16:16:45 UTC 2023


#57752: Improve rest_(allowed|exposed)_cors_headers filters
-------------------------------------+--------------------------
 Reporter:  bor0                     |       Owner:  rachelbaker
     Type:  enhancement              |      Status:  accepted
 Priority:  normal                   |   Milestone:  6.4
Component:  REST API                 |     Version:  6.2
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+--------------------------

Comment (by kadamwhite):

 This approach makes sense to me, given @bor0's argument above about
 avoiding copy-paste code. I think we should have some tests around it,
 though -- writing up a basic one now.

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


More information about the wp-trac mailing list