check if it is a ssl connection and change de protocol for wp_register

When on a SSL connection, the minified assets were blocked. This PR change the protocol of the assets to use `https` instead of the `http`.