JSON API: Remove stale code re stats_get_options()
Infinite Scroll: Add function_exists check.
Merge pull request #890 from kraftbj/json-api-clean

JSON API: Remove stale code re stats_get_options() Props @kraftbj