[wp-trac] [WordPress Trac] #28523: wp_send_json to allow for JSONP

WordPress Trac noreply at wordpress.org
Thu Jun 12 23:54:54 UTC 2014

#28523: wp_send_json to allow for JSONP
 Reporter:  sc0ttkclark  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  3.5
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:

Comment (by sc0ttkclark):

 JSON REST API supports JSONP, and requires a way to send JSON vs JSONP

 Currently they have to roll their own JSON vs JSONP response handling for
 this, you can see where it handles the responses here:


 Adding JSONP to wp_send_json would allow them to remove a few lines of
 code and the benefits would be that any plugin / theme developer could
 then roll their own JSONP responses too.

 So it seems to me, that as the new WP API is on track for eventual merge
 into core, this would help simplify at least a small fraction of it's

Ticket URL: <https://core.trac.wordpress.org/ticket/28523#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list