Revert "Pass get_posts() parameters to json_query_var callbacks."

This reverts commit 4d231aed6b194807e45f5b22a442a38135048a24.

This is for a pull request, so it should have been commited to a branch rather than master. Master should be kept in sync with upstream.