[wp-trac] [WordPress Trac] #30638: Missing dataType in Customizer Widgets
WordPress Trac
noreply at wordpress.org
Fri Dec 12 03:00:38 UTC 2014
#30638: Missing dataType in Customizer Widgets
-------------------------------+------------------------------
Reporter: iseqqavoq | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 4.0.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: javascript
-------------------------------+------------------------------
Changes (by westonruter):
* keywords: => reporter-feedback
* focuses: => javascript
Comment:
Thanks for the suggestion, iseqqavoq.
Is this an actual problem that you have encountered?
When no `dataType` is supplied, then jQuery says that the default behavior
is to do an “Intelligent Guess (xml, json, script, text, html).” So it
should be detecting that the response is JSON and parsing it as such. If
this is not the case for you, perhaps there is a PHP error that is getting
output first and causing HTML to get injected before the JSON content
starts, and in this case the response would not be interpreted as JSON.
But it wouldn't really matter in that case, because it couldn't be parsed
as JSON anyway.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30638#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list