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

WordPress Trac noreply at wordpress.org
Fri Jun 13 13:41:39 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 nacin):

 wp_send_json_success(), wp_send_json_error(), and wp_send_json() are
 designed to "do one thing only", that is admin-ajax.php + our JavaScript
 utility `wp.ajax`. Happy to reconsider, but I think this is a particular
 use case and not something that needs more things stuffed into it.

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


More information about the wp-trac mailing list