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