[wp-trac] [WordPress Trac] #28523: wp_send_json to allow for JSONP
WordPress Trac
noreply at wordpress.org
Fri Jun 13 13:54:21 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 adamsilverstein):
Replying to [comment:17 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.
I like the idea of supporting JSONP in core, perhaps better than stuffing
the functionality into the existing json calls, we could add a new set of
calls: wp_send_jsonp(), etc...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28523#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list