Fix getting the latest and major version of WordPress.
Fix access control origin and status codes.