[wp-trac] [WordPress Trac] #31577: wp.ajax.send JS function should send ajax request with dataType json
WordPress Trac
noreply at wordpress.org
Mon Mar 9 21:29:47 UTC 2015
#31577: wp.ajax.send JS function should send ajax request with dataType json
--------------------------+-----------------------------
Reporter: TikiTDO | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: javascript |
--------------------------+-----------------------------
Occasionally when using the wp.ajax.send JS function defined in wp-
includes/js/wp-util.js:70 the system fails to auto-detect that the
response is JSON, even when it is a valid JSON string.
Given that the remainder of the code fails if the response is not a valid
object it should be safe to add dataType: 'json' to the default options
hash defined on line 78 of that file.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31577>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list