Created
August 30, 2014 13:47
-
-
Save necenzurat/d1783d46ace049735d35 to your computer and use it in GitHub Desktop.
https to http
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*replace https uris for facebook, fuck facebook */ | |
function https_to_http(){ | |
$str = preg_replace('#^https?://#', '', get_permalink() ); | |
return "http://".$str; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment