update: better HTTPS support with native WordPress function
izlabots: ja nav neviena ieteikuma, nerāda kļūdu.