Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 504799

bugfix

$
0
0

Replies: 0

there’s a bug that does not allow to use https protocol, here’s the fix

before
195.wp_redirect(‘http://’ . $_SERVER[‘HTTP_HOST’] . $targetPage . $GETQuery);

after
195.$protocol = ((!empty($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] != ‘off’) || $_SERVER[‘SERVER_PORT’] == 443) ? “https://” : “http://”;
196.wp_redirect($protocol . $_SERVER[‘HTTP_HOST’] . $targetPage . $GETQuery);


Viewing all articles
Browse latest Browse all 504799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>