fixes so any usage of get_permalink gets HTTPS or HTTP based on the page...

... id supplied (before it would set it to HTTP if the page were supposed ot be HTTPS).

I came across this issue while working on Event Espresso 4.5, because often when we send users to paypal (or other payment gateways), we want to sometimes send an httpS return-url to paypal in order to avoid users seeing a warning before returning to the "thank you" page. And unfortunately, sometimes some users only want their "thank you" page to be httpS, and have every other page http.

With the above fix, users can have that by merely marking their "thank you" page as a "secure post" using your plugin (whereas before the wordpress-https plugin would actually intefere with that page being httpS, even if admins tried to filter the url themselves), and our plugin doesn't need to deal with httpS issues.

I'd really appreciate it if you could integrate this pull request asap so we can refer our clients to use your plugin instead of needing to build our own solution.

Thanks!