depuración es tirar ...
Notice: Undefined index: HTTPS en C: \ xampplite \ htdocs \ testsite \ wp-content \ themes \ mytheme \ header.php en la línea 4
¿Cómo puedo cambiar mi función a continuación para evitar el error?
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
}
¿Sería esto el equivalente?
if (isset($_SERVER["HTTPS"])) {$pageURL .= "s";}
¿por qué usa strtolower? –