debug sta gettando ...
Notice: Undefined index: HTTPS in C: \ xampplite \ htdocs \ testsite \ wp-content \ Themes \ MyTheme \ header.php on line 4
Come posso modificare la mia funzione di seguito per evitare l'errore?
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
}
Questo sarebbe l'equivalente?
if (isset($_SERVER["HTTPS"])) {$pageURL .= "s";}
perché usi strtolower? –