gordon.dewis.ca - Random musings from Gordon


Archive for March 5th, 2011

Fixing the YOURLS plugin so it works under WordPress 3.1

March 05, 2011 @ 11:11 By: gordon Category: Meta, WordPress

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.