Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Sorry for removing the bug report template, but I believe this is too simple.
The docs state that, for using JSONP, it's needed to add a "jsonp" parameter with the callback function name.
However the source code looks for a variable named
if( isset( $_REQUEST['callback'] ) ) $return['callback'] = $_REQUEST['callback'];
Indeed, requests that follow the docs (with
Assuming the others agree that
(Leaving the parameter name as it is in the code and updating the docs to match, instead of the other way 'round, also avoids breaking any existing uses of this functionality.)
Since it appears it's more likely an inconsistency between
I'm inclined to 2 myself, but happy to implement whichever changes are preferred. Let me know :)