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

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

 Would still love to see JSONP support added to wp_send_json, and we could
 indeed abstract the callback verification ala Nonce checking via
 wp_verify_json_callback or similar function, which WP API could then
 utilize too. It would be great to stop wp_send_json from exiting, so WP
 API could use it for it's purposes and since it's on it's way into core
 anyways, but if we have to duplicate code then it's not really too bad
 once we at least split off the callback validation of input.

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


More information about the wp-trac mailing list