Modifying Tweetme: replace bit.ly by microuri.com
Posted by david on November 3, 2009
0 comments
This was a quick modification to use use MicroUri, instead bit.ly on Tweetme plugin. We just need to change a function called tweetme_bitly_link(). function tweetme_bitly_link($id) { if (function_exists(’revcanonical_shorten’) && $link = revcanonical_shorten($id)) { return $link; } else { $link = get_permalink($id); /**Williams Mendez **/ $ob = @simplexml_load_file(’http://api.microuri.com/get.php?url=’.$link); if(is_object($ob) && isset($ob->Response) && strlen($ob->Response)) return [...]
