Fixing the YOURLS plugin so it works under WordPress 3.1
I upgraded to WordPress 3.1 at the end of February. Usually, there’s very little breakage, but this time the YOURLS WordPress to Twitter plugin (version 1.4.8) I’ve been using to automatically post a tweet with a shortlink using my dew.is short URL service broke, which was very annoying. I was able to turn turn on the Tweetly Updater plugin as a stop-gap measure, but it uses bit.ly and I really wanted to use my own dew.is.
Browsing through the comments on the author’s website, I came across one from someone else who had managed to track down what appears to be the offending code, so I thought I’d try it out.