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"