[wp-trac] [WordPress Trac] #52691: Check if JSONP is enabled prior to outputting the jsonp-type content-type

WordPress Trac noreply at wordpress.org
Fri Apr 9 21:26:22 UTC 2021


#52691: Check if JSONP is enabled prior to outputting the jsonp-type content-type
------------------------------+--------------------------
 Reporter:  dd32              |       Owner:  rachelbaker
     Type:  defect (bug)      |      Status:  closed
 Priority:  lowest            |   Milestone:  5.8
Component:  REST API          |     Version:
 Severity:  trivial           |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  rest-api
------------------------------+--------------------------
Changes (by rachelbaker):

 * owner:  (none) => rachelbaker
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50695" 50695]:
 {{{
 #!CommitTicketReference repository="" revision="50695"
 REST API: Move the `rest_jsonp_enabled` filter before setting the Content-
 Type header.

 Fixes an issue where if JSONP was disabled the `Content-Type` HTTP header
 was still set to `application/javascript`.

 Props dd32, TimothyBlynJacobs.
 Fixes #52691.
 }}}

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


More information about the wp-trac mailing list