Created
June 14, 2013 18:20
-
-
Save alexkingorg/5784081 to your computer and use it in GitHub Desktop.
simplistic way to force http for shortlinks (regardless of SSL status of current page/request)
This file contains 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 | |
// simplistic way to force http for shortlinks | |
function akv3_get_shortlink($url) { | |
return str_replace('https://', 'http://', $url); | |
} | |
add_filter('get_shortlink', 'akv3_get_shortlink'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment