changed json_request() to wpm_json_request()
changed user_agent() to wpm_user_agent()