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

WordPress Trac noreply at wordpress.org
Fri Jun 13 00:33:34 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):

 This ticket is to request an additional $callback parameter that must
 explicitly be passed into the wp_send_json / wp_send_json_success /
 wp_send_json_error functions. An additional constant check could be
 utilized, which could default JSONP support to on or off.

 My proposal would not affect *any* existing endpoints and break anything.
 It would merely add support for JSONP when explicitly requested by *new*
 code.

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


More information about the wp-trac mailing list