[Plugin: WP Smart Sort] Smart Sort ignores port in URL
-
Hi,
WP Smart Sort leaves out port number in sort selection widget URLs.
For instance – my test server lives on other than port 80, so Smart Sort links from it don’t work (I get 127.0.0.1/site instead of 127.0.0.1:87/site ).By coincidence I happened to have this open in other window. Hope it saves a couple seconds 🙂
$pageURL = (@$_SERVER[“HTTPS”] == “on”) ? “https://” : “http://”;
if ($_SERVER[“SERVER_PORT”] != “80”)
{$pageURL .= $_SERVER[“SERVER_NAME”].”:”.$_SERVER[“SERVER_PORT”].$_SERVER[“REQUEST_URI”];
}else{
$pageURL .= $_SERVER[“SERVER_NAME”].$_SERVER[“REQUEST_URI”];
}
return $pageURL;I might be wrong as I couldn’t test further, but this might be the case for parameters like ?lang=en too.
- The topic ‘[Plugin: WP Smart Sort] Smart Sort ignores port in URL’ is closed to new replies.