Switch to using HTTPS connections for Plugin and Theme API requests when SSL is available. See #18577


git-svn-id: https://develop.svn.wordpress.org/trunk@25308 602fd350-edb4-49c9-b593-d223f7449a82